GithubHelp home page GithubHelp logo

... about jsyn HOT 1 CLOSED

philburk avatar philburk commented on August 26, 2024
...

from jsyn.

Comments (1)

philburk avatar philburk commented on August 26, 2024

Thanks for the feedback.

The custom TimeStamp class should function like a normal TimeStamp.

What do you consider to be a normal timestamp? I have implemented timestamps in multiple systems and they have all been different.

Additionally, creating a TimeStamp at any time just initiates it to zero, which is completely useless.

When you instantiate a TimeStamp you are supposed to pass in the time to the constructor. Or
if you call synth.createTimestamp() then it will be initialized to the current time. Or you can just use time in seconds as a double and not use a TimeStamp object.

http://www.softsynth.com/jsyn/docs/usersguide.php#TimeSleeping

There's no way to cancel scheduled events in the data queue.

You can clear the command queue that holds scheduled events. This ability was added in a recent commit in GitHub. I will release a new pre-compiled JAR file next week.

f4e31fd

If the data queue processes an event that should have already happened (IE it's too late),
then it should just skip it.

That would make the system unreliable and unpredictable. You might then get stuck notes and all kinds of problems. If you are doing scheduling then you should schedule far enough ahead that events are not late.

And sometimes you want the playback to start immediately, not have a start delay of ~5 seconds or whatever.

Then start things immediately. There is no reason you have to delay anything. You do not have to use timestamps. But if you do use them they can be scheduled at any time, including right now.

Either allow the data queue to have multiple voices (play 2 samples at a time),

I wonder if you are confusing the command queue, which is used to schedule synthesis events, and the data queue that is associated with a sample player. The command queue can handle events for an unlimited number of voices. The data queue on a sample player is for one sample at a time. But you can have as many sample players as you want all playing simultaneously.

AudioSamples can't use relative paths.

Yes it can. The sample loader is passed a File object. Those can be created using relative paths.

http://www.softsynth.com/jsyn/docs/usersguide.php#LoadingSample

Specifying the length of frames of a sample to play is awkward.

But frames are what is actually played. And if you want to set up loops, those are defined in frames. Specifying it in seconds can be a problem because the sample playback rate can change and so the durations change.

Maybe have a way to schedule events on-the-go.

You can schedule events "on the go" at any time. You don't have to schedule everything up front. Most people only schedule a second or two ahead at most.

Please note that this section of GitHub is for reporting bugs. If you are not sure how to do something, then please ask questions on the JSyn mailing list. Then lots of folks on the list can help.

https://lists.columbia.edu/mailman/listinfo/jsyn

Also please let me know if there are specific parts of the documentation that we can improve or add to.

from jsyn.

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.