*** falktx has quit IRC | 00:32 | |
*** Pythonfant has joined #lv2 | 00:32 | |
*** Haskellfant has quit IRC | 00:36 | |
*** Pythonfant is now known as Haskellfant | 00:37 | |
*** NickSB2 has joined #lv2 | 00:41 | |
*** falktx__ has joined #lv2 | 00:54 | |
*** falktx__ has quit IRC | 01:53 | |
*** NickSB2 has quit IRC | 02:19 | |
*** aombk2 has joined #lv2 | 02:57 | |
*** aombk has quit IRC | 03:00 | |
*** NickSB2 has joined #lv2 | 03:31 | |
*** NickSB2 has quit IRC | 05:19 | |
*** edogawa has joined #lv2 | 07:48 | |
*** ricardocrudo has joined #lv2 | 08:34 | |
*** NickSB2 has joined #lv2 | 09:30 | |
*** ventosus has joined #lv2 | 09:49 | |
*** NickSB2 has quit IRC | 10:09 | |
*** NickSB2 has joined #lv2 | 10:10 | |
*** wump is now known as wumpus | 10:45 | |
*** falktx__ has joined #lv2 | 10:47 | |
*** ricardocrudo has quit IRC | 11:00 | |
*** ricardocrudo has joined #lv2 | 11:03 | |
*** john_cephalopoda has joined #lv2 | 11:04 | |
john_cephalopoda | Hey, 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_cephalopoda | Is there some parameter in LV2_Handle? I couldn't find much helpful information in the docs. | 11:06 |
ventosus | john_cephalopoda: sample_rate is passed to LV2 instantiate function | 11:09 |
ventosus | http://lv2plug.in/doc/html/group__lv2core.html#a8dbb1fd9ebae0477a11dfc4f0a685d72 | 11:09 |
john_cephalopoda | So I have to read it out and store it into some global variable? | 11:10 |
ventosus | store it, yes | 11:12 |
ventosus | do not use global variables in plugins, though | 11:12 |
john_cephalopoda | Where else shoud I store it O_o | 11:16 |
*** ricardocrudo has quit IRC | 11:18 | |
ventosus | in the struct(C) or class(C++) you return to the host as LV2_Handle | 11:18 |
edogawa | can't you also query jack via jack_get_sample_rate () dynamically? or is that too expensive | 11:20 |
edogawa | or don't you use jack at all... | 11:20 |
john_cephalopoda | I use jack. | 11:21 |
john_cephalopoda | But when it is given to it anyway... | 11:22 |
*** yann-kaelig has joined #lv2 | 11:22 | |
ventosus | edogawa: 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 |
edogawa | ventosus: ah sorry, i'm not a coder as you see :) | 11:24 |
ventosus | edogawa: np | 11:25 |
john_cephalopoda | So 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_cephalopoda | But apparently the currentsample variable is write-protected. | 11:27 |
*** ricardocrudo has joined #lv2 | 11:28 | |
*** NickSB2 has quit IRC | 11:29 | |
*** NickSB2 has joined #lv2 | 11:29 | |
john_cephalopoda | I don't get why it is write-protected. It is basically exactly the same like output[]. | 11:41 |
john_cephalopoda | double const currentsample = *(synth->currentsample); | 11:43 |
john_cephalopoda | float* const output = synth->output; | 11:43 |
ventosus | john_cephalopoda: maybe you use the <const> at the wrong place, can't tell from here | 11:49 |
ventosus | http://stackoverflow.com/questions/1143262/what-is-the-difference-between-const-int-const-int-const-and-int-const | 11:49 |
*** aombk2 is now known as aombk | 12:19 | |
john_cephalopoda | The output for a sine should be (freq*2*Pi)/samplingrate | 12:24 |
john_cephalopoda | * (freq*2*Pi*current_sample_number)/samplingrate | 12:24 |
john_cephalopoda | But as soon as I add the sampling rate, it does weird stuff. | 12:25 |
john_cephalopoda | Okay... | 12:30 |
john_cephalopoda | It seems that the sampling rate is crap. | 12:30 |
john_cephalopoda | When I enter "48000" directly, there are no problems | 12:30 |
rgareus | john_cephalopoda: did you see http://lv2plug.in/book/#_metronome ? | 12:45 |
john_cephalopoda | Haven't read it yet. | 12:51 |
*** NickSB2 has quit IRC | 12:55 | |
*** aombk2 has joined #lv2 | 12:59 | |
*** aombk has quit IRC | 13:08 | |
*** grejppi has quit IRC | 13:20 | |
*** grejppi has joined #lv2 | 13:20 | |
*** john_cephalopoda has quit IRC | 13:21 | |
*** falktx__ has quit IRC | 13:42 | |
*** sigma6 has joined #lv2 | 14:16 | |
*** falktx has joined #lv2 | 14:19 | |
*** rncbc has joined #lv2 | 14:46 | |
*** falktx` has joined #lv2 | 14:51 | |
*** falktx has quit IRC | 14:55 | |
*** rncbc_ has joined #lv2 | 15:32 | |
*** rncbc has quit IRC | 15:33 | |
*** rncbc_ is now known as rncbc | 15:42 | |
*** falktx` has quit IRC | 16:04 | |
*** NickSB2 has joined #lv2 | 16:46 | |
*** yann-kaelig has quit IRC | 16:54 | |
*** ricardocrudo_ has joined #lv2 | 17:27 | |
*** ricardocrudo has quit IRC | 17:31 | |
*** ricardocrudo_ has quit IRC | 17:38 | |
*** ricardocrudo has joined #lv2 | 17:40 | |
*** ricardocrudo_ has joined #lv2 | 17:43 | |
*** falktx__ has joined #lv2 | 17:43 | |
*** ricardocrudo has quit IRC | 17:46 | |
*** flexus has joined #lv2 | 19:10 | |
*** ventosus has left #lv2 | 19:38 | |
*** NickSB2 has quit IRC | 19:50 | |
*** ricardocrudo__ has joined #lv2 | 20:57 | |
*** ricardocrudo_ has quit IRC | 21:00 | |
*** edogawa has quit IRC | 21:31 | |
*** ricardocrudo_ has joined #lv2 | 21:44 | |
*** ricardocrudo__ has quit IRC | 21:48 | |
*** ricardocrudo_ has quit IRC | 21:50 | |
*** sigma61 has joined #lv2 | 22:04 | |
*** sigma6 has quit IRC | 22:05 | |
*** rncbc has quit IRC | 22:06 | |
*** sigma61 has quit IRC | 22:09 | |
*** sigma6 has joined #lv2 | 22:09 | |
*** flexus has quit IRC | 22:12 | |
*** LAbot has joined #lv2 | 22:27 |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!