Giter Club home page Giter Club logo

Comments (4)

mmontag avatar mmontag commented on May 24, 2024

Basically need 2 things in order to do this...

  • refactor audio output to a generic interface, which could be either a file writer or WebAudio context. Medium difficulty.
  • expose discrete voices (write to an audio buffer for each voice) outside of each player engine. The player engines are all designed for internal mixing, and write to stereo audio buffer only. Very difficulty.

Getting discrete voices in some common interface would have other benefits, like being able to show an oscilloscope for each channel, but it requires modifying the engines. The problem with modifying the engines is that (1) they each do things differently, so the work doesn't scale very well and (2) it makes things (more) brittle since they will diverge from upstream improvements.

I would like to see how Modizer handles this :)

from chip-player-js.

mmontag avatar mmontag commented on May 24, 2024

It looks like Modizer only does this where the engine already supports it.

https://github.com/yoyofr/modizer/blob/master/src/ModizMusicPlayer.mm

see

  • m_voicesdataavail=
  • m_voice_buff_ana
  • //copy voice data for oscillo view

edit: actually Modizer makes deep modification to emulation cores:

yoyofr/modizer@cf11760#diff-7390462695712dbe8460edcaab01bd6597b9d920f20a15211b0172acc8ceb4df

from chip-player-js.

mmontag avatar mmontag commented on May 24, 2024

Furnace Tracker provides another example of emulation cores being modified to expose discrete channel output:

https://github.com/search?q=repo%3Atildearrow%2Ffurnace+oscilloscope&type=commits&s=committer-date&o=asc

from chip-player-js.

mmontag avatar mmontag commented on May 24, 2024

See also:
tildearrow/furnace#1361
tildearrow/furnace#1355

from chip-player-js.

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.