Audio File Player Speed Control - Sticky

Post your bug reports/problems here

Moderators: seb@plogue, davidv

Audio File Player Speed Control - Sticky

Postby dts350z » Tue Jul 27, 2010 10:39 am

I noticed the "Speed" parameter on the Audio File Player and linked it up to the "scrubber" I had made (with input from other's here) for use with the basic file player.

It didn't run backwards just faster or slower so I removed the control. Much later realized that the Player was not running at 1x. Files recorder with Plogue were shorter than those I played. OK my fault.

Deleted the Audio File Player and inserted a new one, but still had the same problem?

Only linking it again and setting the speed parameter to zero got me back to normal.

Does that sound right?

Guess I could check the layout xml for a saved value of the speed parameter?
dts350z
 
Posts: 354
Joined: Thu Jan 15, 2009 1:18 pm

Re: Audio File Player Speed Control - Sticky

Postby seb@plogue » Tue Jul 27, 2010 11:00 am

The speed parameter is a per-instance variable so unless you did delete/undo or still had parameter links or something, it shouldn't happen unless you had a file with a different sampling rate than the one Bidule was running at, in that case the reading speed would not be 1x unless you change the Speed parameter to compensate.
seb@plogue
Site Admin
 
Posts: 6153
Joined: Tue Mar 02, 2004 7:23 pm
Location: Montreal

Re: Audio File Player Speed Control - Sticky

Postby dts350z » Tue Jul 27, 2010 11:41 am

OK I will try to understand what happened by looking at the xml.

How does the speed control parameter vary with input. It's not documented in the help file.

0 = 1x
1 = ?
dts350z
 
Posts: 354
Joined: Thu Jan 15, 2009 1:18 pm

Re: Audio File Player Speed Control - Sticky

Postby seb@plogue » Tue Jul 27, 2010 11:44 am

IIRC the range for the parameter is between 0 and 2 and act as a speed multiplier,also I do think that a value close to 0 is not honoured and is actually something close to 0.1.
seb@plogue
Site Admin
 
Posts: 6153
Joined: Tue Mar 02, 2004 7:23 pm
Location: Montreal

Re: Audio File Player Speed Control - Sticky

Postby dts350z » Tue Jul 27, 2010 12:47 pm

seb@plogue wrote:IIRC the range for the parameter is between 0 and 2 and act as a speed multiplier,also I do think that a value close to 0 is not honoured and is actually something close to 0.1.


OK Thanks. I'm seeing this as the default state:

Code: Select all
<Bidule id="UID_1280222915" type="com.plogue.AudioFileInput_2" displayName="Audio File Player_0" processingMode="process">
         <Geometry x="-258.5" y="136.5" w="0" h="0"/>
         <ChannelConfig numSampleIn="0" numSampleOut="2" numMidiIn="0" numMidiOut="0" numFreqIn="0" numFreqOut="0" numMagIn="0" numMagOut="0"/>
         <Gui state="normal" hidden="true" generic="true">
            <Geometry x="-1" y="-1" w="0" h="0"/>
         </Gui>
         <Parameter id="-9" userMin="0" userMax="0" lockedForRandom="false" mutationFactor="0.1">1.0</Parameter>
         <Parameter id="-7" userMin="0" userMax="1" lockedForRandom="false" mutationFactor="0.1">1</Parameter>
         <Parameter id="-5" userMin="0" userMax="0" lockedForRandom="false" mutationFactor="0.1">0.0</Parameter>
         <Parameter id="-2" userMin="0" userMax="2" lockedForRandom="false" mutationFactor="0.1">0.0</Parameter>
         <Parameter id="0" userMin="0" userMax="0" lockedForRandom="true" mutationFactor="0"></Parameter>
         <Parameter id="1" userMin="0" userMax="1" lockedForRandom="false" mutationFactor="0.1">0</Parameter>
         <Parameter id="3" userMin="0" userMax="1" lockedForRandom="false" mutationFactor="0.1">0</Parameter>
         <Parameter id="4" userMin="0" userMax="2" lockedForRandom="false" mutationFactor="0.1">1.0</Parameter>
      </Bidule>


And what I have saved (with wrong speed):

Code: Select all
<Bidule id="UID_1238953803" type="com.plogue.AudioFileInput_2" displayName="Audio File Player" processingMode="process">
         <Geometry x="-339.833" y="339.333" w="0" h="0"/>
         <ChannelConfig numSampleIn="0" numSampleOut="2" numMidiIn="0" numMidiOut="0" numFreqIn="0" numFreqOut="0" numMagIn="0" numMagOut="0"/>
         <Gui state="normal" hidden="false" generic="true">
            <Geometry x="673" y="120" w="271" h="273"/>
         </Gui>
         <Parameter id="-9" userMin="0" userMax="0" lockedForRandom="false" mutationFactor="0.1">1.0</Parameter>
         <Parameter id="-7" userMin="0" userMax="1" lockedForRandom="false" mutationFactor="0.1">1</Parameter>
         <Parameter id="-5" userMin="0" userMax="0" lockedForRandom="false" mutationFactor="0.1">0.0</Parameter>
         <Parameter id="-2" userMin="0" userMax="2" lockedForRandom="false" mutationFactor="0.1">0.0</Parameter>
         <Parameter id="0" userMin="0" userMax="0" lockedForRandom="false" mutationFactor="0">C:\Users\Glenn\Music\Cross Road.wav</Parameter>
         <Parameter id="1" userMin="0" userMax="1" lockedForRandom="false" mutationFactor="0.1">0</Parameter>
         <Parameter id="3" userMin="0" userMax="1" lockedForRandom="false" mutationFactor="0.1">0</Parameter>
         <Parameter id="4" userMin="0" userMax="2" lockedForRandom="false" mutationFactor="0.1">1.031250</Parameter>
      </Bidule>


I must not have saved the layout after replacing the Audio File player, and then loaded the old one or something. If it turns out otherwise I'll update this thread.

Looking at the xml I guess I do have one other question. I see that Parameter id 0 is the file name, but that doesn't seem to be exposed in the list of parameters in the parameter window. Is there a way I can control this (outside of the Audio File Player GUI)?

I guess I can select a previously entered file with presets but can I do something with a media pool shortcut? OK. I think I answered my own question, if you put the player in a group then the file selector is exposed as a parameter.
dts350z
 
Posts: 354
Joined: Thu Jan 15, 2009 1:18 pm

Re: Audio File Player Speed Control - Sticky

Postby seb@plogue » Wed Jul 28, 2010 9:17 am

Parameter 4 is the speed as you can see in snippet #2 the value is not exactly 1.0


I see that Parameter id 0 is the file name, but that doesn't seem to be exposed in the list of parameters in the parameter window. Is there a way I can control this (outside of the Audio File Player GUI)?


Yes, parameter with a string type are treated as not linkable but can be group parameters. The main issue is that making it linkable would only make sense if the source or target parameter are also string type representing filenames.

I guess I can select a previously entered file with presets but can I do something with a media pool shortcut?


No, the files read from disk are not part of the mediapool.
seb@plogue
Site Admin
 
Posts: 6153
Joined: Tue Mar 02, 2004 7:23 pm
Location: Montreal

Re: Audio File Player Speed Control - Sticky

Postby dts350z » Wed Jul 28, 2010 10:45 am

Thanks again for the info.

Looking at the xml and adding Audio File Player parameters to a group as raised to other questions/issues.

1) As I've reported before the "home" parameter in the Audio File Player is non functional. In a group it adds as "No GUI" but if you change it to a button so you can trigger it doesn't work. Previously I had reported that linking a 2nd player instance's Home button to the 1st instance doesn't work (as it does with play).

2) So I see that there are GUI controls that we don't have as choices in SDK or in group parameters. e.g. "Toggle Button" in the Audio File Player. I'm curious as to a complete list of GUI controls and ways to utilize them in groups and SDK plugins.

2b) Is the GUI control type explicit in the XML? I thought maybe it was the Parameter id at first but then it didn't seem so, and if not that, then I don't see it.
dts350z
 
Posts: 354
Joined: Thu Jan 15, 2009 1:18 pm

Re: Audio File Player Speed Control - Sticky

Postby seb@plogue » Thu Jul 29, 2010 9:35 am

1) As I've reported before the "home" parameter in the Audio File Player is non functional. In a group it adds as "No GUI" but if you change it to a button so you can trigger it doesn't work. Previously I had reported that linking a 2nd player instance's Home button to the 1st instance doesn't work (as it does with play).


I'll have a look.

2) So I see that there are GUI controls that we don't have as choices in SDK or in group parameters. e.g. "Toggle Button" in the Audio File Player. I'm curious as to a complete list of GUI controls and ways to utilize them in groups and SDK plugins.


See the xsd for what is available for groups. Toggle button would require a SDK update.

2b) Is the GUI control type explicit in the XML? I thought maybe it was the Parameter id at first but then it didn't seem so, and if not that, then I don't see it.


Not sure I understand the question:

For built-in bidules, the GUI types are inside the code and not in the XML.

When adding a parameter to a group, it defaults to the GUI type for the parameter which can be changed, the GUI type is written into the XML.
seb@plogue
Site Admin
 
Posts: 6153
Joined: Tue Mar 02, 2004 7:23 pm
Location: Montreal


Return to Bidule Bugs and Problems

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 1 guest