Sunday, 2015-06-21

*** falktx has quit IRC00:32
*** Pythonfant has joined #lv200:32
*** Haskellfant has quit IRC00:36
*** Pythonfant is now known as Haskellfant00:37
*** NickSB2 has joined #lv200:41
*** falktx__ has joined #lv200:54
*** falktx__ has quit IRC01:53
*** NickSB2 has quit IRC02:19
*** aombk2 has joined #lv202:57
*** aombk has quit IRC03:00
*** NickSB2 has joined #lv203:31
*** NickSB2 has quit IRC05:19
*** edogawa has joined #lv207:48
*** ricardocrudo has joined #lv208:34
*** NickSB2 has joined #lv209:30
*** ventosus has joined #lv209:49
*** NickSB2 has quit IRC10:09
*** NickSB2 has joined #lv210:10
*** wump is now known as wumpus10:45
*** falktx__ has joined #lv210:47
*** ricardocrudo has quit IRC11:00
*** ricardocrudo has joined #lv211:03
*** john_cephalopoda has joined #lv211:04
john_cephalopodaHey, I am tinkering around with lv2 and sine waves, however I can't find out, how I can get the sampling rate, so I can make sine waves with the right frequency.11:05
john_cephalopodaIs there some parameter in LV2_Handle? I couldn't find much helpful information in the docs.11:06
ventosusjohn_cephalopoda: sample_rate is passed to LV2 instantiate function11:09
ventosushttp://lv2plug.in/doc/html/group__lv2core.html#a8dbb1fd9ebae0477a11dfc4f0a685d7211:09
john_cephalopodaSo I have to read it out and store it into some global variable?11:10
ventosusstore it, yes11:12
ventosusdo not use global variables in plugins, though11:12
john_cephalopodaWhere else shoud I store it O_o11:16
*** ricardocrudo has quit IRC11:18
ventosusin the struct(C) or class(C++) you return to the host as LV2_Handle11:18
edogawacan't you also query jack via jack_get_sample_rate () dynamically? or is that too expensive11:20
edogawaor don't you use jack at all...11:20
john_cephalopodaI use jack.11:21
john_cephalopodaBut when it is given to it anyway...11:22
*** yann-kaelig has joined #lv211:22
ventosusedogawa: you must not use any jack* func inside a LV2 plugin, the plugin may well run on top of something else, ALSA, CoreAudio, file, ...11:24
edogawaventosus: ah sorry, i'm not a coder as you see :)11:24
ventosusedogawa: np11:25
john_cephalopodaSo I now got a variable that stores the number of the current sample. It has to be aviable over several iterations of run() and must be increased every time the next sample is selected.11:27
john_cephalopodaBut apparently the currentsample variable is write-protected.11:27
*** ricardocrudo has joined #lv211:28
*** NickSB2 has quit IRC11:29
*** NickSB2 has joined #lv211:29
john_cephalopodaI don't get why it is write-protected. It is basically exactly the same like output[].11:41
john_cephalopodadouble const currentsample = *(synth->currentsample);11:43
john_cephalopodafloat* const output = synth->output;11:43
ventosusjohn_cephalopoda: maybe you use the <const> at the wrong place, can't tell from here11:49
ventosushttp://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-and-int-const11:49
*** aombk2 is now known as aombk12:19
john_cephalopodaThe output for a sine should be  (freq*2*Pi)/samplingrate12:24
john_cephalopoda*   (freq*2*Pi*current_sample_number)/samplingrate12:24
john_cephalopodaBut as soon as I add the sampling rate, it does weird stuff.12:25
john_cephalopodaOkay...12:30
john_cephalopodaIt seems that the sampling rate is crap.12:30
john_cephalopodaWhen I enter "48000" directly, there are no problems12:30
rgareusjohn_cephalopoda: did you see http://lv2plug.in/book/#_metronome ?12:45
john_cephalopodaHaven't read it yet.12:51
*** NickSB2 has quit IRC12:55
*** aombk2 has joined #lv212:59
*** aombk has quit IRC13:08
*** grejppi has quit IRC13:20
*** grejppi has joined #lv213:20
*** john_cephalopoda has quit IRC13:21
*** falktx__ has quit IRC13:42
*** sigma6 has joined #lv214:16
*** falktx has joined #lv214:19
*** rncbc has joined #lv214:46
*** falktx` has joined #lv214:51
*** falktx has quit IRC14:55
*** rncbc_ has joined #lv215:32
*** rncbc has quit IRC15:33
*** rncbc_ is now known as rncbc15:42
*** falktx` has quit IRC16:04
*** NickSB2 has joined #lv216:46
*** yann-kaelig has quit IRC16:54
*** ricardocrudo_ has joined #lv217:27
*** ricardocrudo has quit IRC17:31
*** ricardocrudo_ has quit IRC17:38
*** ricardocrudo has joined #lv217:40
*** ricardocrudo_ has joined #lv217:43
*** falktx__ has joined #lv217:43
*** ricardocrudo has quit IRC17:46
*** flexus has joined #lv219:10
*** ventosus has left #lv219:38
*** NickSB2 has quit IRC19:50
*** ricardocrudo__ has joined #lv220:57
*** ricardocrudo_ has quit IRC21:00
*** edogawa has quit IRC21:31
*** ricardocrudo_ has joined #lv221:44
*** ricardocrudo__ has quit IRC21:48
*** ricardocrudo_ has quit IRC21:50
*** sigma61 has joined #lv222:04
*** sigma6 has quit IRC22:05
*** rncbc has quit IRC22:06
*** sigma61 has quit IRC22:09
*** sigma6 has joined #lv222:09
*** flexus has quit IRC22:12
*** LAbot has joined #lv222:27

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!