¿ªÔÆÌåÓý

Locked Re: Help with JMRI audio objects #audio


 

Jerry,

Am 01.02.2020 um 06:12 schrieb JerryG via Groups.Io:
I've just started experimenting with using JMRI's audio objects.? I can't find an explanation of each of the elements on the Add/Edit screens but they do seem to have reasonably descriptive names.? I'm particularly interested in the purpose of "Loop Points." I hoped it might be a way to play just part of an audio clip (by setting the Start or End), but changing these appears to have no effect.? I change one or both, then hit "Apply" and OK, but the change doesn't seem to stick.? When I go back in to Edit, these values are right back where they were before I edited.
A very good overview on audio objects is here:


For further details I would like to recommend this page:


One more recommendations is:


The "Loop Points" are not implemented, as far as I can see. Good loop sounds are sometimes difficult to create. The discussion on jmriusers might give you an impression and valuable hints, e.g. here:
/g/jmriusers/message/165465 and following.

My point is, that an audio editor (like the free Audacity) could provide a better support for creating loop sound than using "Loop Points".

But it might be an alternative for you to use "offsets". That's implemented in JMRI Audio and does "Set the offset in which to start playback of this AudioSource".


Also, is there any way to crank up the gain on Audio Sources beyond 1?? I'm using the example sounds and some need a boost.? I tried and it would let me enter a number >1 but then wouldn't save it.
In principle yes. But in some cases gain is limited to maximum 1.0. I have found to use gain is complex. I use Audacity to amplify a sound (if necessary) and gain for fine tuning. And I try to limit my gain values to 1.0.

Adjusting gain works for me with the JMRI Audio Tables. I just tried to save a changed gain value. It works. I did File >> Store >> Store Configuration Only to File.


I also found what I think is some unusual behavior around creating new objects:
- I have one buffer (IAB1) saved in a panel file which I open.? When I go to Add Buffer, the screen shows IAB1 in the System Name (no automatic increment).? I didn't notice this, so selected another sound and hit OK.? JMRI changed the file loaded into the buffer IAB1.? Seems like it shouldn't change an existing buffer under the guise of Add Buffer.
- However, when I then went to Add Buffer, it automatically came up with a new (incremented) system name, IAB2.? If I then Delete IAB2, and hit Add Buffer, it comes up with IAB3.? If I cancel out of that, close the Audio Table windows, and re-enter, Add Buffer shows a system name of IAB4.? So some counter not properly noticing that IAB2 and IAB3 never got created (or at least they don't show in the Audio Table screen).
-? At one point I got an error message but I was unable to reproduce that consistently.
I have no experience here. I'm creating buffers and sources by a Jython script like or by a config.xml file (for VSDecoders).

Klaus

Join [email protected] to automatically receive all group messages.