PennController for IBEX › Forums › Support › recording audio production › Reply To: recording audio production
June 14, 2022 at 5:21 pm
#8235
Jeremy
Keymaster
Hi,
You cannot do that, because there is one recording per MediaRecorder element, and elements are created before the sequence of trials is run, they cannot be created on the fly
My suggestion is you give unique labels to your recording trials and use jump
to run them again if needed, eg:
Template( row => newTrial( "recorder-"+row.item , newMediaRecorder("mediarecorder-"+row.item, "audio").print().wait().log() , // Jump to this trial (= recorder-ITEM#) newButton("Again").print().callback( jump("recorder-"+row.item) , getButton("Next").click() ) , newButton("Next").print().wait() ) .log("item#", row.item) )
Jeremy