Comments (1)
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.
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)
- Resolve version numbers between JSyn and build.gradle HOT 1
- Ant build Failing due to slf4j dependency HOT 1
- Sometimes WaveRecorder doesn't stop the StreamingThread when used with realTime = false HOT 5
- port TJ_Devices from old JSyn to new API for multi-channel demo
- move old Roadmap to GitHub Wiki
- Suggest better docs for setSustainBegin and End HOT 1
- Broken link in online usersguide docs
- Need DoubleTable( FloatSample ) constructor
- Glitch When Playing Through Bluetooth HOT 1
- Different amplitude value for a VariableRateDataReader HOT 1
- use ByteBuffer wrap() and order() for WAV and AIFF
- Publish JSyn on Maven HOT 9
- Fix contributor name on NOTICE.txt HOT 1
- Starting a Synthesizer with Port Audio and a device input count of greater then two crashes HOT 3
- Port TJ_Devices.java to new repo HOT 1
- LineIn not working on MacOS Big Sur
- ExponentialRamp crashes on negative input
- Selecting a module moves it slightly HOT 1
- Add capability to WaveRecorder, and maybe WaveFileWriter, to write to an OutputStream
- Tests failing HOT 2
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 jsyn.