Isaiah Odhner
Isaiah Odhner
Looks like [this](https://github.com/osnr/cruncher/blob/57ca73b309891dbf3eece85c3bc2b07c47bf1907/src/coffee/cruncher.coffee#L9) is what's breaking numpad plus.
Or rather, CodeMirror. Inserting a plus with the numpad works by default, but their `keyName` function decides it's `=` for key event handling purposes.
On the other hand, this listener is there just to delete everything on the line after you type `=`. It could be replaced by an implementation that does only that.
@janmyler There's a library for exporting to [wav](https://github.com/mattdiamond/Recorderjs) (which I've used [here](https://github.com/1j01/98/tree/gh-pages/sound-recorder)) and a somewhat hackily converted version for [mp3](https://github.com/nusofthq/Recordmp3js) (which [does seem to work](https://rawgit.com/nusofthq/Recordmp3js/master/index.html) but _might_ be incredibly slow...
Feel free to take [`export.coffee`](https://github.com/1j01/audio-editor/blob/gh-pages/src/export.coffee) from my [audio editor](https://github.com/1j01/audio-editor/), [compile it online](http://coffeescript.org/#try:%0A%40export_audio_buffer_as%20%3D%20%28audio_buffer%2C%20file_type%2C%20number_of_channels%2C%20sample_rate%29-%3E%0A%09%0A%09number_of_channels%20%3F%3D%20audio_buffer.numberOfChannels%0A%09sample_rate%20%3F%3D%20audio_buffer.sampleRate%0A%09%0A%09forceDownload%20%3D%20%28blob%2C%20file_name%29-%3E%0A%09%09url%20%3D%20%28window.URL%20%3F%20window.webkitURL%29.createObjectURL%28blob%29%0A%09%09a%20%3D%20document.createElement%20%22a%22%0A%09%09a.href%20%3D%20url%0A%09%09a.download%20%3D%20file_name%20%3F%20%22output.%23%7Bfile_type%7D%22%0A%09%09a.click%28%29%0A%09%0A%09switch%20file_type%0A%09%09when%20%22wav%22%0A%09%09%09worker%20%3D%20new%20Worker%20%22lib%2Fexport%2Fwav%2FrecorderWorker.js%22%0A%09%09%09%0A%09%09%09%23%20get%20it%20started%20and%20send%20some%20config%20data...%0A%09%09%09worker.postMessage%0A%09%09%09%09command%3A%20%22init%22%0A%09%09%09%09config%3A%0A%09%09%09%09%09numChannels%3A%20number_of_channels%0A%09%09%09%09%09sampleRate%3A%20sample_rate%0A%09%09%09%0A%09%09%09%23%20pass%20it%20the%20full%20buffer...%0A%09%09%09worker.postMessage%0A%09%09%09%09command%3A%20%22record%22%0A%09%09%09%09buffer%3A%0A%09%09%09%09%09for%20i%20in%20%5B0...number_of_channels%5D%0A%09%09%09%09%09%09audio_buffer.getChannelData%20i%0A%09%09%09%0A%09%09%09%23%20ask%20it%20to%20export%20the%20WAV...%0A%09%09%09worker.postMessage%0A%09%09%09%09command%3A%20%22exportWAV%22%0A%09%09%09%09type%3A%20%22audio%2Fwav%22%0A%09%09%09%0A%09%09%09%23%20when%20it's%20done...%0A%09%09%09worker.onmessage%20%3D%20%28e%29%3D%3E%0A%09%09%09%09forceDownload%20e.data%2C%20%22export.wav%22%0A%09%09%0A%09%09when%20%22mp3%22%0A%09%09%09mp3Worker%20%3D%20new%20Worker%20%22lib%2Fexport%2Fmp3%2Flame-worker.js%22%0A%09%09%09%0A%09%09%09mp3Worker.postMessage%0A%09%09%09%09config%3A%0A%09%09%09%09%09sampleRate%3A%20sample_rate%0A%09%09%09%09%09kbps%3A%20128%0A%09%09%09%09channels%3A%0A%09%09%09%09%09for%20i%20in%20%5B0...number_of_channels%5D%0A%09%09%09%09%09%09audio_buffer.getChannelData%20i%0A%09%09%09%0A%09%09%09mp3Worker.onmessage%20%3D%20%28e%29-%3E%0A%09%09%09%09mp3Blob%20%3D%20new%20Blob%20e.data%2C%20type%3A%20%22audio%2Fmp3%22%0A%09%09%09%09forceDownload%20mp3Blob%2C%20%22export.mp3%22%0A) and drop it into your project (along with the [workers](https://github.com/1j01/audio-editor/tree/gh-pages/lib/export)). From there, usage is simple: ``` js var...
Workaround: you can upgrade `send` in your project, and live-server should use it. `npm i [email protected] --save-dev` (latest version as of writing) or `npm i send@latest --save-dev` Make sure to...
`path.resolve(process.cwd(), mw)` would support absolute paths easily enough. This would still be a breaking change tho, for the relative case. To maintain backwards compatibility we could check for both locations...
@rasmniel If you're including middleware for live-server in the project, what's wrong with installing `live-server` in the project (as a dev dependency)?
> Regarding scripts, I assume you mean NPM scripts? Yes, thanks! Hm, on my machine the tests also fail because of line endings, so I definitely need that `.gitattributes` file...
Done! https://github.com/jvilk/BrowserFS/pull/224