Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-11-19

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 admsyn and then you'll need to set some levels to 1 if you want to hear anything
00:00 joshuajnoble oh whoops, pasted the wrong version in there
00:00 admsyn setting the file to ofToDataPath("entertainer.mp3") is only going to work if that file's in the app's data folder too
00:00 joshuajnoble too much chaos
00:00 admsyn oh ok
00:00 joshuajnoble yeah, i'm spacey but not THAT spacey
00:03 joshuajnoble changed it to what I actually have.
00:04 admsyn and you just get silence I guess? no errors in the console?
00:04 joshuajnoble yeah, just silence
00:05 joshuajnoble the console is quiet.
00:05 admsyn I think you want to do the connections after setting the channel layout
00:05 admsyn since before you set the channel layout the mixer doesn't know how many inputs / outputs it should have
00:05 admsyn so it probably has none or some default
00:05 joshuajnoble I definitely hear the fan going fwiw
00:06 admsyn well that bodes well
00:06 admsyn you can stick a tap on one of the inputs like in the examples, to visualize it and see if it's playing
00:06 admsyn but it probably is
00:06 joshuajnoble this line confuses me a little; filePlayers[i].connectTo(mixer, i); // connect file player 0 to mixer input bus 0, etc
00:06 joshuajnoble in AU terms isn't input bus different than channel?
00:07 admsyn you'll need to set one of the inputs to have a volume > 0 in order to hear anything, since it'll be all 0 at first
00:07 admsyn yeah a bus can have any number of channels on it
00:08 admsyn I think the matrix mixer is smart enough to know that, say, plugging a stereo input to bus 0 means plugging in channel 0 and 1
00:08 admsyn but it's been quite a while
00:09 admsyn anyway I think what you need to do is set the input volume of one of the file players to > 0, and then set the output volume of that player to > 0 as well
00:09 admsyn so something like line 12 and 14
00:10 joshuajnoble input volume of the filePlayer?
00:11 admsyn that'd be line 12
00:12 admsyn it's kind of hard to explain in text :)
00:12 joshuajnoble I guess that's conceptually a little unintuitive, the volume in of a file player
00:12 joshuajnoble yeah, I'm gathering :)
00:13 admsyn if you imagine it like a guitar amp, like the amount of initial gain (which is seperate from the actual volume of the amp)
00:13 admsyn just make it 1 and you can ignore it as a concept
00:13 admsyn and then after that, you set how loud you want it to be in each output channel
00:14 admsyn so it can be like 70% in channel 3, 50% in channel 5, 25% in channel 6...
00:14 admsyn whatever your <3 desires
00:14 joshuajnoble ABSD.mChannelsPerFrame should match my actual channels out, correct?
00:15 admsyn yes
00:16 joshuajnoble hmm. still no dice
00:18 admsyn if there's nothing in the console I'd guess you'd have to start diagnosing things like "is it even playing", "is the audio hardware on" etc
00:19 admsyn you should be able to throw a tap on the file player you expect to be hearing and visualize the waveform
00:19 joshuajnoble lol. yeah. the hardware is ok b/c i can hit all 8 channels of it from SuperCollider
00:19 admsyn it's just a couple lines
00:20 admsyn what's your setup() look like now?
00:21 admsyn oh you didn't do output.start() :p
00:23 joshuajnoble oh
00:25 joshuajnoble ok SOUND YES! but only sound out of channels 1 & 2 :/
00:26 admsyn hey at least that makes sense
00:26 admsyn what's your volume-setting code look like?
00:27 joshuajnoble updating it right now
00:27 joshuajnoble if I have an ok intuitive understanding of what's going on I should be getting sound from channels 1-4 now
00:31 admsyn not quite, that's setting all the inputs to 0.8
00:31 admsyn you want like levels[2][3] = 1 to set the volume of player 2 in output channel 3 to be 1
00:32 admsyn oh you're never actually setting the level
00:33 admsyn oops :)
00:33 admsyn https://gist.github.com/admsyn/00ef95aa58a2202ff87d#file-settinglevels-cpp-L15-L21
00:34 joshuajnoble OOH, I that was just some diagnostic stuff
00:34 admsyn nope it's good old audio unit fun times
00:45 joshuajnoble well then so: for( int i = 0; i < NUMBER_OF_FILE_PLAYERS * 2; i++)     {         for( int j = 0; j < NUMBER_OF_CHANNELS; j++)         {             levels[i][j] = 0.8;         }     }
00:45 joshuajnoble should set everything to 0.8, no?
00:46 admsyn should yeah
00:46 joshuajnoble hmpf. grumpy cat.
00:46 admsyn you just get sound out of channels 1 & 2?
00:47 joshuajnoble yep :(
00:47 joshuajnoble alright, well it's 5 I'M OUT OF HERE (for a little while anyways)
00:48 admsyn alright, well best of luck with it :)
00:48 admsyn I'd guess it's a minor config oversight in code or otherwise
00:48 admsyn also it's 4:48
00:54 joshuajnoble after i finish packing up all my stuff it'll be 5
00:54 joshuajnoble really slow packing
01:55 meandi joined #openframeworks
02:23 FergusL_ joined #openframeworks
02:47 ilbot3 joined #openframeworks
02:47 Topic for #openframeworks is now Welcome :) Site: http://openframeworks.cc/ Logs: http://irclog.perlgeek.de/openframeworks/
03:16 admsyn joined #openframeworks
04:05 sx joined #openframeworks
04:22 mhashmi joined #openframeworks
04:55 mhashmi joined #openframeworks
05:34 mhashmi_ joined #openframeworks
05:56 mhashmi joined #openframeworks
06:10 jedahan joined #openframeworks
06:37 meandi_2 joined #openframeworks
07:18 mhashmi joined #openframeworks
08:08 notjosh joined #openframeworks
09:00 mhashmi joined #openframeworks
09:56 notjosh joined #openframeworks
11:01 Pando joined #openframeworks
12:00 Pando joined #openframeworks
16:29 c60 joined #openframeworks
16:37 jedahan joined #openframeworks
16:37 _matt_ joined #openframeworks
17:00 notjosh joined #openframeworks
17:33 w4ffles joined #openframeworks
18:11 _matt_ joined #openframeworks
18:14 admsyn joined #openframeworks
18:39 _matt_ joined #openframeworks
18:46 w4ffles joined #openframeworks
18:46 Sembei joined #openframeworks
18:58 sx joined #openframeworks
19:02 notjosh joined #openframeworks
19:31 w4ffles joined #openframeworks
19:37 jedahan joined #openframeworks
19:42 hurdi joined #openframeworks
19:43 admsyn joined #openframeworks
19:46 sx joined #openframeworks
20:08 w4ffles joined #openframeworks
20:11 w4ffles joined #openframeworks
21:12 sx joined #openframeworks
21:14 _matt_ joined #openframeworks
22:20 pizthewiz joined #openframeworks
22:44 c60 joined #openframeworks
23:02 sx joined #openframeworks
23:09 meandi_3 joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary