Comments (3)
I looked into this for a little while, and I think below there's hopefully a workaround - but it makes me wonder if I should be using SoX at all for resizing. (The .size() command seems to be where these clicks are coming from, and it's kinda special and actually runs after all other commands have run, in SoX, prior to saving the wav file.)
So I'm considering a bigger change to address this long-term, but here's how I would write your second command:
$('example').noise(44100).audio().play(_.noise(4));
Then for question re: closing the terminal, I'm on Mac but for me it's ctrl+c to quit the running process. However, I have found once in a blue moon the server gets locked up and actually stays open in the background until I run "htop", find the stuck process, and kill it via kill -9 {pid_here}.
So, I'm going to keep this issue open to address both these things:
- SoX is probably not necessary for wavetable resizing commands, especially since it's causing clicks in some contexts
- Needs to be better UX for killing/stopping/monitoring process
from facet.
Issue 1 should be fixed now in v0.5.3: https://github.com/mjcella/facet/releases/tag/v0.5.3
Hopefully now this example works for you and isn't causing any crashes or horrible noises:
$('example').noise(1000).size(44100).play(_.noise(4));
Note: I would add a .audio()
before the .play()
, which will send the pattern through a HPF at 0Hz, helping to prevent clicks and DC offset, and moving the pattern into a bipolar range between -1 and 1.
Still gotta work on issue 2.
from facet.
I made a new issue for the second part, just so it's easier for me to see at bird's eye view for what needs to be done 😄 : #29
With that, closing this one out
from facet.
Related Issues (20)
- Closing and reopening the laptop while running facet causes the transport to run way too fast to "catch up"
- untangle the clear hook / stop pattern wonkiness HOT 2
- feature: real-time pattern visualization (someday/maybe) HOT 1
- Feature: user-set variables / system-level variables improvements HOT 2
- load wav files entirely client-side as .wav rather than via HTTP request to transport HOT 1
- [ctrl + ;] doesn't work in firefox
- automatic bpm change wonkiness HOT 1
- bug: editor websocket connection wonkiness HOT 1
- feature: add linter to repo (someday/maybe)
- feature: editor compatibility for safari
- improve aliasing on stretchto() / stretch() methods
- Compatibility errors with recent Node.js versions HOT 4
- in-pattern lookup data store/lookup functionality HOT 1
- Feature: float32arrays for FacetPattern methods that generate/process number arrays
- Enhancement: redo MIDI for deeper polyphony HOT 1
- Feature: create interactive tutorial
- Enhancement: 2D methods not requiring square sizes
- Enhancement: ability to save patterns as MIDI files
- Sounds not coming trough on a Linux Pipewire system HOT 7
- move chord logic for real-time MIDI notes out of transport
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facet.