Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about samplerate of Befaco Lich
Staff
#1
0
0
Question about samplerate of Befaco Lich

<!-- SC_OFF --><div class="md"><p>Hi folks! I own a Befaco Lich and trying to write code for it on C++. I already wrote a quantizer, and started to write oscillator, but ran into a problem: It looks like samples per second my function processAudio(AudioBuffer &amp;buffer) gets is not 48k, but something around 1300. What am I doing wrong?</p> <p>float time = ((float)samples)/SAMPLERATE;</p> <p>float frequency = 1;</p> <p>return sin(frequency*time/tau);</p> <p>(where &quot;samples&quot; is amount of samples which I gotten since the beginning of the program, and tau = 2*pi = 6.28318530718)</p> <p>With right samplerate this must result in LFO with frequency 1Hz, but it is only when I set SAMPLERATE to ~1300.</p> <p>Maybe problem with code? Maybe I can somehow set audiobuffer's samplerate? Somebody have the same problem?</p> <p>Thanks.</p> </div><!-- SC_ON --> submitted by <a href="https://www.reddit.com/user/Perucmpamypa"> /u/Perucmpamypa </a> <br/> <span><a href="https://www.reddit.com/r/modular/comments/rpwgsy/question_about_samplerate_of_befaco_lich/">[link]</a></span> <span><a href="https://www.reddit.com/r/modular/comments/rpwgsy/question_about_samplerate_of_befaco_lich/">[comments]</a></span>
Reply


Messages In This Thread
Question about samplerate of Befaco Lich - by SynthWizard - 12-29-2021, 08:50 AM

Forum Jump:

[-]
Private Messages
Please login or register to use this functionality.

[-]
Who's Online
There are currently no members online.

[-]
Latest Threads
Hidden Gem Recording Gear: If You Know, ...
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 14
HeadRush update Prime, Core & Flex Core ...
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 11
Sound Particles update Beat Panner
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 9
Peak Tamer from Nicky Howard
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 15
Rhodes launch Rhodes Clav Pro
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 17
Acustica introduce Dangerous Music BAX E...
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 12
Harmonic Piano from The Crow Hill Compan...
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 13
PSPaudioware release PSP BBDelay
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 9
Podcast: SonicTALK 904 - SV-2, Plaits, M...
Last Post: SynthWizard
Yesterday 08:11 PM
» Replies: 0
» Views: 17