Giter Club home page Giter Club logo

Comments (5)

MariaPet avatar MariaPet commented on August 28, 2024 1

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.

micaelmbagira avatar micaelmbagira commented on August 28, 2024 1

Is there an update on this?

from react-music.

paulsoh avatar paulsoh commented on August 28, 2024

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.

x5engine avatar x5engine commented on August 28, 2024

Is there an update on this?

from react-music.

hazem3500 avatar hazem3500 commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.