Neural Amp Modeller with PiPedal #96
Replies: 4 comments 13 replies
-
Thank you for your work on making it possible to use this LV2 plugin in PiPedal. I use it quite often and would very much like to make a little pedalboard with a Raspberry Pi or similar sized SBC and a small USB audio interface with acceptable Hi-Z input and outputs. Right now I use a Focusrite Scarlett 2i2 Gen2 and it works astonishly well using 64/3 latency. With Neural Amp Modeler I have to increase it to 128/3 though but that is probably because the CPU usage is 70-90%. One thing though. Every time I go to the slot where Neural Amp Modeler is the web page says it says it either unable to load the model or something else. The audio is not interrupted or anything though. I also get a reconnect abitrarely when I change models but I think that is due to the low CPU power of the La Frite. I am considering buying a Orange Pi 5 but to me there is something about trying to make things work on "as little as needed". |
Beta Was this translation helpful? Give feedback.
-
You might want to make sure you have the latest version of neural amp
modeler from Mike Oliphant's page. There was a brief period where Neural
Amp modeller complained about not being able to find it's default impulse
file named "click.wav". And the latest and greatest PiPedal now displays
any error messages logged by plugins (it didn't before). I'm pretty sure
that's been fixed.
The current version, with pipedal fixes now merged:
https://github.com/mikeoliphant/neural-amp-modeler-lv2
I'm not sure what the reconnect is about. It doesn't sound right to me.
Upgrade to the latest version, and see if that makes a difference. And if
you continue to see a disconnect, maybe send me log files, and let's check
that something more serious isn't going wrong.
To generate log files:
journalctl -b 0 | grep pipedald > ~/logs.txt
and send me the result.
I'm please to see that the Orange Pi 5 is finally generally available! I've
been watching out for it since they first announced it last year. And the
price is good for what it is! Definitely serious competition for Raspberry
PI! Maybe twice the performance (50% for 2.4Ghz instead of 1.8ghz, and a
substantial additional improvement for an A-76 instead of an A-72), and two
or four times the RAM. The PiPedal build is starting to get a bit crowded
on an 8GB Pi.
One caveat: you should ask around to confirm that it will run an OS with a
kernel version of at least 5.15. There were substantial fixes to USB audio
in that release of the kernel, including major performance improvements..
Versions of Linux prior to that do not support USB audio well at all. I'm
not certain, but I think your Focusrite Scarlet was one of the very few USB
audio cards that did work well on pre-5.15 Linux.
The relevant command to display the OS's kernel version is:
```
uname -a
Linux machinename *5.15.0-71-lowlatency* #78-Ubuntu *SMP PREEMPT *Wed
Apr 19 12:17:25 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
The SMB PREEMPT part matters too. It indicates a low-latency kernel.
Raspberry PI's come with an SMP PREEMPT kernel by default. Linux Mint
includes a low-latency kernel as part of the distribution, but doesn't
install it by default. It's not straightforward to find or build
low-latency kernels for other distros.
I matters because, traditionally, ARM Linux kernels were based on
corresponding Android kernel versions, which lagged far behind mainline
Linux kernels. Why? Because the chip venders don't really care about
writing drivers for Linuxen, but they care very much about making sure that
their chipsets will run Android. The real profits for ARM chipsets is on
phones. So they write drivers and firmware for Android, instead of current
mainstream Linux versions. I had my eye on a very promising Raspberry
Pi-alike for a while, only to find out that they had decided to ship with a
Linux 4.x kernel instead of a 5.15 kernel. Also a Rockchip-based product.
And the Armel-based multimedia boxes suffer particularly from this problem
as well.
This may have changed a bit now that ARM support is in upstream Linux. But
my understanding is that boot configuration has changed substantially
between Linux 4.x and Linux 5.x; and the boot changes make it difficult to
port Wifi and Bluetooth drivers, and (most difficult of all) video drivers
with copy-protection support for Netflix &c. These drivers are usually
provided by the chipset manufacturer. So manufacturers of micro-PCs get
stuck with whatever their chipset manufacturer decides to support.
…On Mon, May 1, 2023 at 4:56 PM 38github ***@***.***> wrote:
Thank you for your work on making it possible to use this LV2 plugin in
PiPedal. I use it quite often and would very much like to make a little
pedalboard with a Raspberry Pi or similar sized SBC and a small USB audio
interface with acceptable Hi-Z input and outputs.
One thing though. Every time I go to the slot where Neural Amp Modeler is
the web page says it says it either unable to load the model or something
else. The audio is not interrupted or anything though. I also get a
reconnect abitrarely when I change models but I think that is due to the
low CPU power of the La Frite. I am considering buying a Orange Pi 5 but to
me there is something about trying to make things work on "as little as
needed".
—
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXK2DF75Y5KKMOTTEJGMEDXEAPQ5ANCNFSM6AAAAAAXLBY33Y>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I think I know, from looking at journalctl, what the reason might be... OOM killer. It wouldn't surprise me since I only have 512MB of RAM. |
Beta Was this translation helpful? Give feedback.
-
Well done! I guess I can imagine how that works. :-) I'll file that one away for future reference. |
Beta Was this translation helpful? Give feedback.
-
A set of changes that allow Neural Amp Modeler to be used with PiPedal have just been merged to https://github.com/mikeoliphant/neural-amp-modeler-lv2
This plugin allows models built by Neural Amp Modeler to be run in an LV2 PLugin. The results are impressive. And the ability to choose from thousands of downloadable .NAM models on the internet makes this plugin a good replacement for the bundled TooB ML plugin.
A huge collection of Neural Amp models is available at ToneHunt.
CPU use is ferocious -- about 45%, but they do run stably without under-runs on PiPedal. Neural Amp Modeler can load models with a variety of different architectures, some more costly, and some less costly. Reportedly, some Neural Amp models will have lower CPU use, but I'm not sure how to tell which are which. For the meantime, TooB ML provides better performance, even if it provides a much smaller set of models to choose from.
Mike and I might collaborate on building a Debian package in the near future. If anyone has experience building for multiple platforms and operating systems, I'd be grateful you could help me out. In the meantime, you'll have to build it yourself from source.
Because it's licensed as GPL, I can't bundle it with PiPedal's distribution. (I'm not actually sure I'm even allowed to load it under the terms of the GPL). In the meantime, you'll have to build and install it yourself. Building it is relatively straightforward if you follow the instructions on the GitHub page. To install the plugin once you have built it, run:
In PiPedal, click on the File control to upload .nam models using your web browser or the PiPedal Android client.
Beta Was this translation helpful? Give feedback.
All reactions