# Real time latency reduction

**URL:** <https://forum.cabbageaudio.com/t/real-time-latency-reduction/914>\
**Category:** Csound Noobs\
**Created:** [29 January 2018 09:50 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914 "2018-01-29T09:50:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [29 January 2018 09:50 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914/1 "2018-01-29T09:50:10Z")

</div>

Hi there,

I have created a cabbage patch in order to trigger events using a piezoelectric sensor connected to my audio device. When the threshold is exceeded it play a wave file.

But I still get latency problem between the stimulation and the response.  
I already tried to reduce the buffer size, but if I set it on less than 640 samples the sound file is distorted.

I know that the CPU is an important factor and usually I work my macbook pro (now broken!!), but this project is for children in a school where I could use a sony vaio for a music workshop.

Any suggestion to reduce the time response?

Thanks in advance! 😉

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [30 January 2018 09:38 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914/2 "2018-01-30T09:38:00Z")

</div>

What OS are you using? And what audio drivers?

---

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [30 January 2018 14:03 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914/3 "2018-01-30T14:03:34Z")

</div>

Hi Rory,

on my macbook pro using El Capitan 10.11 it was possible to set a good sample rate and using a simple Focusrite 2i2 the time response was good.

But the problem appears with the same audio device on a Sony Vaio with Intel Pentium 2020M 2.40Ghz with 4 Gb RAM using windows 10.

I would like to know if there is a chance to make it work better on small budget laptops as I have at my disposal in schools.

Thanks!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [30 January 2018 20:12 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914/4 "2018-01-30T20:12:16Z")

</div>

Are you using ASIO drivers? The Windows drivers are not good at all. I always use ADSIO4All on Windows. Also, are the instruments you are using complex instruments? I can try on my rather old i3 laptop tomorrow and see what the response is like.

---

<div class="post-metadata">

**Author:** ![DeBord](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/debord/32/399_2.png) [@DeBord](https://forum.cabbageaudio.com/u/DeBord)\
**Post date:** [25 February 2018 10:23 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914/5 "2018-02-25T10:23:31Z")

</div>

Sorry for my late reply! Ah, I thought we didn’t need the ASIO drivers using an external audio interface, but I installed them and it is now working fine at 64 samples buffer size, so I am very satisfied with the real time response!

Thank you! 😀

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [25 February 2018 10:26 UTC](https://forum.cabbageaudio.com/t/real-time-latency-reduction/914/6 "2018-02-25T10:26:19Z")

</div>

Thanks for reporting back to us. That’s good to know.
