Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glitches/crashes with Roland UA-25EX sound card - ASIO protocol (Windows) #97

Closed
RichardJECooke opened this issue Mar 3, 2018 · 21 comments
Labels

Comments

@RichardJECooke
Copy link

RichardJECooke commented Mar 3, 2018

Firstly, thanks so much for this VST wrapper! So useful.

I made a simple bandpass plugin in PurrData to test it:

pd

And it displays fine in a DAW, here in Reaper:

reaper

But the sound is bad. Phasing and crackling.

Windows 10, Reaper 64 bit.

Please would you spare a minute to take a look and see what I've done wrong?
I've attached a .zip file of the patch and the Reaper sample project.

camomile.zip

@RichardJECooke
Copy link
Author

RichardJECooke commented Mar 5, 2018

Yes, something is definitely wrong with Camomile.

Here's an even simpler patch. Just a volume control. When volume is full (i.e. 100%, doing nothing) it sounds fine, but as soon as it tries to change the sound it's wrong - almost like a sample rate problem.

untitled

volume_vst.zip

I've also just checked the included Bulgroz and Castafiore FX plugins. They are doing the same thing - you can hear the effect is kinda happening, but there's a whole lot of fuzz and glitches too. I tried the FX.VST3 and FX.dll Camomile files, same problem.

@pierreguillot
Copy link
Owner

pierreguillot commented Mar 5, 2018

Hi,

You don't use any line~ object so the patch generates audio glitches even in Pd when moving the sliders.
You should do for example:

|   [r vl]
|    |
|   [$1 20(
|    |
|   [line~]
|    |
[*~  ]
|

You should try to use a different synthesizer than ReaSyn that already sounds "distorted". Are you sure this is the plugin and not ReaSyn that generates a distorted sound? Why not using a simple sinusoidal oscillator? Because, I don't ear any strange artifact on my MacOS machine.

Something like that for example:

[osc~ 220]
|   \
[dac~]

Also what is the sample rate? Is it Reaper 5.76?

@RichardJECooke
Copy link
Author

RichardJECooke commented Mar 6, 2018

Thanks for your reply.

  • My soundcard (UA-25EX) sample rate (and in Reaper and FL Studio): 44.1 kHz

  • Reaper v 5.76 / x64.

  • FL v 12.5.1 64bit

  • I copied the libpd.dll to c:/windows/system32 and c:/windows/syswow64.

  • I copied the VST3 and patch folder to c:/Program Files/Steinberg/VstPlugins.

  • FL Studio is worse than Reaper. The Castafiore plugin crashed the DAW immediately. The Bulgroz plugin loaded but the volume jumps to full even when not playing, and when playing it just crackles continuously.

  • Just checked on my little Windows 10 laptop and Camomile sound works fine on Reaper, using ASIO4ALL v2, 512 samples, 44.1 kHz.

  • I then found that the plugins work in Reaper using the FL Studio ASIO driver on my main machine too.

Can you think of anything I can change or check related to my Roland external soundcard settings on my main machine? I've never had a problem with any plugins, DAWs, or PureData patches using this driver before.

@RichardJECooke RichardJECooke changed the title Plugin sounding weird :-\ Plugin sound broken with external soundcard driver Mar 6, 2018
@pierreguillot
Copy link
Owner

Yep, that's strange...
What is the number of samples per block with the external sound card?
Do you have any improvement if you change it to 64/128/256 or 512 samples?
Do you have a crash report on FL Studio?
This could drive me to an explanation.

@RichardJECooke
Copy link
Author

untitled

Apparently FL doesn't have crash logs: https://forum.image-line.com/viewtopic.php?t=74027

@pierreguillot
Copy link
Owner

pierreguillot commented Mar 6, 2018

Why the ASIO buffer size is 288 samples? It's not a power of 2...
Can you try with the request block size to 32 (and 64) samples in Reaper? Because 288 = 9 * 32.
If it works fine when the request block size is 32 samples, perhaps it means that when the block size is 256 in fact the plugin compute first 256 samples and then 32 extra samples (256+32=288). So I could fix this.

@RichardJECooke
Copy link
Author

I'm afraid changing the request block size to 32 or 64 makes no difference to the problem.

I also can't change the buffer size to a specific number, none of the options offered by the soundcard driver options screen shown above is a power of 2.

Also, the FL Studio ASIO driver works fine even if I change its request block size to 100 (from 256).

@pierreguillot
Copy link
Owner

pierreguillot commented Mar 7, 2018

Sorry, I'm a bit lost. At last, the plugin doesn't work with the Roland UA-25EX sound card using the UA-25EX driver v1.0.0 and the ASIO protocol (audio system) on Windows 10, isn't it?

So I have several questions:

  • Is the UA-25EX driver v1.0.0 the only driver compatible with this sound card?
  • Can you update this driver?
  • Can you use another driver?
  • Can you use the sound card with another protocol?
  • And do you have any difference/improvement if you don't use any graphical interface?
    1- Can you try this?
    screen shot 2018-03-07 at 9 59 43 am
    2- and/or this?
    screen shot 2018-03-07 at 9 59 30 am

Thanks

@RichardJECooke
Copy link
Author

  • The plugin doesn't work with the Roland UA-25EX sound card using the UA-25EX driver v1.0.0 and the ASIO protocol (audio system) on Windows 10, isn't it? Correct

  • Is the UA-25EX driver v1.0.0 the only driver compatible with this sound card? As far as I know, yes

  • Can you update this driver? I have the latest driver

  • Can you use another driver? When I use the FL Studio ASIO driver in Reaper the sound plays correctly through my external soundcard out to my speakers. So I think this might be using another driver, or it might just be using the FL driver internally and sending sound out through the cable - I don't really understand how that works in Windows

  • Can you use the sound card with another protocol? As above, I think

And do you have any difference/improvement if you don't use any graphical interface?
1- Can you try this? Same result. Pure tone when using FL driver. Gravelly, distorted tone when using UA-25ex driver.

@pierreguillot pierreguillot changed the title Plugin sound broken with external soundcard driver Glitches/crashes with Roland UA-25EX sound card - ASIO protocol (Windows) Mar 12, 2018
@pierreguillot
Copy link
Owner

It's really specific and I'm sorry but I don't have the material to test and debug. I guess, we'll have to wait for a kind soul that could help to solve the problem...

@pierreguillot
Copy link
Owner

Perhaps this is related to this thread?

Can you try with the 32bit version of the plugin?

@alfonso73
Copy link

Hi Pierre and Richard,
i tested Richard's file and i have no audio issues.
I have another little thing.
I installed Richard's vst3 and loaded his reaper project and Reaper can't find the vst3. Then i substitute that missing vst3 in the Reaper track with...that very vst3 and everything worked...
strange little issue.

@pierreguillot
Copy link
Owner

Hi,
@alfonso73

I have another little thing.

I think the problems is related to the VST ID (see this thread). Perhaps the plugin doesn't give the good ID... I'll check that!

@RichardJECooke
Perhaps your problem is related to this issue #100. Here is new version:
CamomileWindows64.zip. Can you try it and tell if there is any improvement?

Thank you both!

@RichardJECooke
Copy link
Author

Tried the new version of Camomile you linked to. No difference, still my Roland soundcard driver sounds wrong, my other ASIO driver sounds fine.

@alfonso73
Copy link

Hi,
@pierreguillot yeah can it reasonably be that thing.

@pierreguillot
Copy link
Owner

I guess the audio driver can force a DAW to use different audio block sizes that weren't managed by the plugin

@pierreguillot
Copy link
Owner

Can you tell me if you have better results with the last release?

@korakios
Copy link

@RichardJECooke could try ticking the “Use smaller Asio buffer size” box in preferences and see if there is any difference?

@RichardJECooke
Copy link
Author

Will try the new stuff soon, thanks. Just busy with some things currently

@pierreguillot
Copy link
Owner

Any news?

@pierreguillot
Copy link
Owner

I close this due to lack of activity, feel free to reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants