Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: possible to use two audioplayers simultanously?
Reply to topic
Author Message
michael



Joined: Dec 29, 2011
Posts: 11

PostPosted: Apr 24, 2022 5:39 AM    Post subject: possible to use two audioplayers simultanously?

hello,
in bioexplorer i created a design where you can hear piano music with the volume dependend on the amplitude of the two trained frequencies.
i use two audioplayers because i made two audiofiles, one for the right hand and one for the left hand (melody) of the piano piece. you can train two frequencies at once, when both are going in the desired direction you hear both hands playing together. if only one is in the desired range you only here one hand playing. both audioplayers are synched and playing all the time, the volume between 0% and 100%.
i like this kind of feedback because it is very pleasurable and simple. is this possible in bioera?

thanks,
michael
jarek



Joined: Oct 22, 2007
Posts: 952

PostPosted: Apr 24, 2022 12:25 PM    Post subject:

Yes, that should be possible. You can have multiple PCMAudioPlayer elements. It is possible to read audio file with several elements like SoundFileReader. And it is possible to modulate the amplitude in several ways, for example using ExpressionEvaluator and using the second input as amplitude modulator.

There is also Generator for pure sine tones (with options for modulate amplitude and/or frequency) and MIDI.
michael



Joined: Dec 29, 2011
Posts: 11

PostPosted: Apr 25, 2022 1:27 AM    Post subject:

thanks jarek for the quick answer.
that sounds great.
Reply to topic