Giter VIP home page Giter VIP logo

Comments (4)

kode54 avatar kode54 commented on May 30, 2024

Panning is something ordinarily controlled by a midi controller, and usually applies to all notes on a given channel.

from tinysoundfont.

schellingb avatar schellingb commented on May 30, 2024

@kode54 TinySoundFont contains only the synth part it doesn't deal in MIDI channels. Because multiple MIDI channels could work on the same preset, it actually would be quite hard to correctly implement a MIDI controller around it in its current state.
I guess an option to pass in a channel number for note_on's with further manipulations of all playing voices having a certain channel would be great to have.

from tinysoundfont.

frabert avatar frabert commented on May 30, 2024

Would it be possibile to instead have panning values for presets? So that we can have better control over the mixing of the various presets played by a single TSF instance

EDIT: I made a PR for this, #11

from tinysoundfont.

martin-minovski avatar martin-minovski commented on May 30, 2024

@frabert You should be able to do this by setting a preset to a TSF channel using:
tsf_channel_set_bank_preset(tsf* f, int channel, int bank, int preset_number);
After that you call tsf_channel_note_on and setting the panning of that channel will affect all playing notes :)
Closing this as #10 has implemented the request.

from tinysoundfont.

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.