Comments (5)
It's not the right solution but it works temporarily for me if I change line 128 in node_modules/react-music/lib/components/synth from this:
// osc.frequency.value = _noteParser2.default.freq(transposed);
to this:
osc.frequency.value = _noteParser2.freq(transposed);
_noteParser2.default is undefined
Would be nice if that could be fixed in a new release.
from react-music.
Is there an update on this?
from react-music.
I think this is a note-parser package issue. <Synth />
and <Monosynth />
both use parser.freq and it seems like depending on what kind of syntax you're using it works on some environments where in other it doesn't (In my case, i was working on a react app using create-react-app)
I had to move the entire react-music src/ folder to inside of my react project and had to switch out all the import parser from 'note-parser'
to var parser = require('parser')
and now it seems like it's working! Not elegant but a workaround for now.
Inside my apps
import {
Analyser,
Song,
Sequencer,
Sampler,
Synth,
} from '../ReactMusic';
Inside Monosynth, Synth
var parser = require('note-parser');
from react-music.
Is there an update on this?
from react-music.
It's not the right solution but it works temporarily for me if I change line 128 in node_modules/react-music/lib/components/synth from this:
// osc.frequency.value = _noteParser2.default.freq(transposed);
to this:
osc.frequency.value = _noteParser2.freq(transposed);
_noteParser2.default is undefined
Would be nice if that could be fixed in a new release.
This worked for me 👍!
from react-music.
Related Issues (20)
- Changing sampler settings on the fly HOT 4
- Alternate time signatures & time signature/tempo changes? HOT 3
- Wrong notation for some notes HOT 1
- Contributing HOT 2
- Improve error messages HOT 5
- this.context.close is not a function HOT 8
- Demo song not working HOT 3
- play midi files? HOT 1
- Unable to run on LinuxMint HOT 1
- Song does not play when disabling autoplay HOT 2
- Mobile support?
- React 16 support HOT 1
- Add more instruments to play in realtime
- Tunajs bypass property propType assigned as number
- Uncaught (in promise) DOMException: Unable to decode audio data HOT 1
- Is there any function available that calls when ticking for Song Component ?
- [deleted]
- Doesn't work in Chrome 71+ HOT 3
- add support for GM soundfont
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 react-music.