From e9e7ae1adc6c96230e5f3d1c8064b2955572f546 Mon Sep 17 00:00:00 2001 From: Rafael Rocha Date: Tue, 11 Feb 2020 13:19:47 -0300 Subject: [PATCH 1/7] Update about death threats and my status --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 47a65ce..e44512f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ https://github.com/rochars/wavefile ## Notice -My country, Brazil, is under a fascist government that is hunting and killing its opponents. I've been threatened too. +**I've been receiving constant death threats for my position against the Bolsonaro regime, both in person and over the phone. I need to get away from my activities for now. Wish me luck.** Create, read and write wav files according to the specs. From 06b9a3d131eeed54061b080256f3a24fc4e2c6fa Mon Sep 17 00:00:00 2001 From: "Rafael S. Rocha" Date: Wed, 12 Feb 2020 04:50:06 -0300 Subject: [PATCH 2/7] Update README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e44512f..db59da0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ https://github.com/rochars/wavefile ## Notice -**I've been receiving constant death threats for my position against the Bolsonaro regime, both in person and over the phone. I need to get away from my activities for now. Wish me luck.** +**I've been receiving constant death threats for my position against the Bolsonaro regime, both in person and over the phone. +** Create, read and write wav files according to the specs. From ac30e4c1f3e15fe7323ef995fc9d34f4799863cd Mon Sep 17 00:00:00 2001 From: "Rafael S. Rocha" Date: Sun, 8 Mar 2020 14:30:20 -0300 Subject: [PATCH 3/7] Moving away from GitHub --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db59da0..524b7a2 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,20 @@ https://github.com/rochars/wavefile [![Codecov](https://img.shields.io/codecov/c/github/rochars/wavefile.svg?style=flat-square)](https://codecov.io/gh/rochars/wavefile) [![Unix Build](https://img.shields.io/travis/rochars/wavefile.svg?style=flat-square)](https://travis-ci.org/rochars/wavefile) [![Windows Build](https://img.shields.io/appveyor/ci/rochars/wavefile.svg?style=flat-square&logo=appveyor)](https://ci.appveyor.com/project/rochars/wavefile) [![Scrutinizer](https://img.shields.io/scrutinizer/g/rochars/wavefile.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/rochars/wavefile/) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1880/badge)](https://bestpractices.coreinfrastructure.org/projects/1880) -## Notice -**I've been receiving constant death threats for my position against the Bolsonaro regime, both in person and over the phone. -** +## MOVING AWAY FROM GITHUB (2020-03-08) +Microsoft, owner of GitHub, was one of the main backers of the current fascist regime in Brazil and also of the coup d'etat that led to the present situation of my country. +It paid well: The brazilian government was required to run all its systems on open-source software. After the coup d'etat this changed, the goverment began purchasing Microsoft licenses and migrating all their systems to Windows. + +It is not just a case of business malpractice - there is a genocide going on in Brazil and many people, including myself, have lived under constant death threats for the past couple years bacause of our positions against the current fascist regime. Many have been murdered or incarcerated. Poverty and violence skyrocketed. + +**This software will keep being released in NPM as always - only the repository will be moved. Projects depending on this software will not be affected.** + +For Microsoft owners and collaborators: you have a lot of blood in your hands. I will not share my work with people of your kind. + +--- + +# wavefile Create, read and write wav files according to the specs. From a0eb954ff4a307325bd267b0063e7cebbba0241e Mon Sep 17 00:00:00 2001 From: "Rafael S. Rocha" Date: Wed, 2 Sep 2020 01:27:33 -0300 Subject: [PATCH 4/7] The End --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 524b7a2..6555a2c 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,16 @@ https://github.com/rochars/wavefile [![NPM version](https://img.shields.io/npm/v/wavefile.svg?style=for-the-badge)](https://www.npmjs.com/package/wavefile) [![Docs](https://img.shields.io/badge/API-docs-blue.svg?style=for-the-badge)](https://rochars.github.io/wavefile/docs) [![Tests](https://img.shields.io/badge/tests-online-blue.svg?style=for-the-badge)](https://rochars.github.io/wavefile/test/browser.html) [![Codecov](https://img.shields.io/codecov/c/github/rochars/wavefile.svg?style=flat-square)](https://codecov.io/gh/rochars/wavefile) [![Unix Build](https://img.shields.io/travis/rochars/wavefile.svg?style=flat-square)](https://travis-ci.org/rochars/wavefile) [![Windows Build](https://img.shields.io/appveyor/ci/rochars/wavefile.svg?style=flat-square&logo=appveyor)](https://ci.appveyor.com/project/rochars/wavefile) [![Scrutinizer](https://img.shields.io/scrutinizer/g/rochars/wavefile.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/rochars/wavefile/) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1880/badge)](https://bestpractices.coreinfrastructure.org/projects/1880) +## NOTICE (2020-09-02) +My part in the development of this software has unfortunately ended. There are many **wavefile forks**; I welcome them all and wish them the best. + +If this software is / was useful to you and you would like to make a donation: + +BTC: bc1qwf9ncpnjwklnrqw3vjsjeeurk5hvshfnaffvwg +XMR: 837GxvoURUzTnNUEFyzs1SW33yBnZxGZ1Hwk7qioYfpkGyVS4W51mRNTo9rDn4myNpdH425a5VQyWj4bKHvcuTqcBEe5Aq9 +LTC: ltc1q8wvyxv4xwwmcu5k9a9ma7q5tjhajhe9dagg2ta + +Thank you all very much. Working on **wavefile** was a lot of fun for me. I am happy to see that it was useful for so many people. ## MOVING AWAY FROM GITHUB (2020-03-08) Microsoft, owner of GitHub, was one of the main backers of the current fascist regime in Brazil and also of the coup d'etat that led to the present situation of my country. From 2b60d1310c9f82a6c35a9701580cd2a724a4c018 Mon Sep 17 00:00:00 2001 From: "Rafael S. Rocha" Date: Fri, 16 Apr 2021 12:11:43 -0300 Subject: [PATCH 5/7] Remove donation links --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index 6555a2c..7f38599 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,6 @@ https://github.com/rochars/wavefile ## NOTICE (2020-09-02) My part in the development of this software has unfortunately ended. There are many **wavefile forks**; I welcome them all and wish them the best. -If this software is / was useful to you and you would like to make a donation: - -BTC: bc1qwf9ncpnjwklnrqw3vjsjeeurk5hvshfnaffvwg -XMR: 837GxvoURUzTnNUEFyzs1SW33yBnZxGZ1Hwk7qioYfpkGyVS4W51mRNTo9rDn4myNpdH425a5VQyWj4bKHvcuTqcBEe5Aq9 -LTC: ltc1q8wvyxv4xwwmcu5k9a9ma7q5tjhajhe9dagg2ta - Thank you all very much. Working on **wavefile** was a lot of fun for me. I am happy to see that it was useful for so many people. ## MOVING AWAY FROM GITHUB (2020-03-08) From f9311ad2b98419386f9b0630918af16ef1ad829a Mon Sep 17 00:00:00 2001 From: "Rafael S. Rocha" Date: Mon, 9 May 2022 19:19:15 -0300 Subject: [PATCH 6/7] Update README Remove nontechnical information. --- README.md | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/README.md b/README.md index 7f38599..ecd4c11 100644 --- a/README.md +++ b/README.md @@ -5,23 +5,6 @@ https://github.com/rochars/wavefile [![NPM version](https://img.shields.io/npm/v/wavefile.svg?style=for-the-badge)](https://www.npmjs.com/package/wavefile) [![Docs](https://img.shields.io/badge/API-docs-blue.svg?style=for-the-badge)](https://rochars.github.io/wavefile/docs) [![Tests](https://img.shields.io/badge/tests-online-blue.svg?style=for-the-badge)](https://rochars.github.io/wavefile/test/browser.html) [![Codecov](https://img.shields.io/codecov/c/github/rochars/wavefile.svg?style=flat-square)](https://codecov.io/gh/rochars/wavefile) [![Unix Build](https://img.shields.io/travis/rochars/wavefile.svg?style=flat-square)](https://travis-ci.org/rochars/wavefile) [![Windows Build](https://img.shields.io/appveyor/ci/rochars/wavefile.svg?style=flat-square&logo=appveyor)](https://ci.appveyor.com/project/rochars/wavefile) [![Scrutinizer](https://img.shields.io/scrutinizer/g/rochars/wavefile.svg?style=flat-square&logo=scrutinizer)](https://scrutinizer-ci.com/g/rochars/wavefile/) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1880/badge)](https://bestpractices.coreinfrastructure.org/projects/1880) -## NOTICE (2020-09-02) -My part in the development of this software has unfortunately ended. There are many **wavefile forks**; I welcome them all and wish them the best. - -Thank you all very much. Working on **wavefile** was a lot of fun for me. I am happy to see that it was useful for so many people. - -## MOVING AWAY FROM GITHUB (2020-03-08) -Microsoft, owner of GitHub, was one of the main backers of the current fascist regime in Brazil and also of the coup d'etat that led to the present situation of my country. - -It paid well: The brazilian government was required to run all its systems on open-source software. After the coup d'etat this changed, the goverment began purchasing Microsoft licenses and migrating all their systems to Windows. - -It is not just a case of business malpractice - there is a genocide going on in Brazil and many people, including myself, have lived under constant death threats for the past couple years bacause of our positions against the current fascist regime. Many have been murdered or incarcerated. Poverty and violence skyrocketed. - -**This software will keep being released in NPM as always - only the repository will be moved. Projects depending on this software will not be affected.** - -For Microsoft owners and collaborators: you have a lot of blood in your hands. I will not share my work with people of your kind. - ---- # wavefile From b1bcf2042df46440d0f4ea55a9aedb079adafb46 Mon Sep 17 00:00:00 2001 From: Kim T Date: Tue, 11 Oct 2022 20:19:29 -0700 Subject: [PATCH 7/7] Allow smpl chunk to be read via CLI --- bin/wavefile.js | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 bin/wavefile.js diff --git a/bin/wavefile.js b/bin/wavefile.js old mode 100644 new mode 100755 index f861927..9223b65 --- a/bin/wavefile.js +++ b/bin/wavefile.js @@ -67,6 +67,9 @@ const help = " Usage:\n" + " --list-cue Ex: wavefile input.wav --list-cue\n" + " Print all the cue points of the file.\n" + "\n" + + " --list-smpl Ex: wavefile input.wav --list-smpl\n" + + " Print all the sample chunks from the file.\n" + + "\n" + " --bits Ex: wavefile input.wav --bits\n" + " Print the bit depth of the file.\n" + "\n" + @@ -157,6 +160,9 @@ for (let command in commands) { // --list-cue } else if (command == '--list-cue') { console.log(wav.listCuePoints()); + // --list-smpl +} else if (command == '--list-smpl') { + console.log(wav.smpl); // --bits } else if (command == '--bits') { if (wav.fmt.validBitsPerSample) {