Pi Zero

M
Marek posted Nov 27, 18:54:

Hi. Did someone tried it with sampler box already?
It seems there`s no audio out in chinch...

C
Cook posted Nov 27, 21:25:

I bought the Zero with the intention of making a SamplerBox. As a newcomer RPi, I'm not certain about the capabilities of the 40 pin header, nor the demands of audio on USB or Micro-USB. However, I hazard a guess to say that making a SamplerBox with a Zero is possible, assuming that these conditions can be met:

-If the Zero allows power to be fed into the 40 pin header, as per the SamplerBox instructions for the Pi2.
-If the DAC can be made to reside/be input into one of the Micro-USB ports on the Zero, or if the DAC is instead replaced by the HDMI. Relying on the HDMI output seems like an option that was intentionally avoided on the SamplerBox based on the Pi2.
-If the USB SD card reader can be made to reside in the other Micro-USB ports on the Zero.
-If the user sacrifices USB keyboard functionality and uses MIDI instead, much like the existing MIDI functionality of the SamplerBox. Or, if the USB keyboard input could instead move into the 40 pin header. (Again, I'm new to this, not sure if this option is possible.)
-If the decrease in RAM from 1GB to 512 MB can be overcome.

As another interested person, I am eager to help on making the SamplerBox on Zero happen.

R
remi posted Dec 8, 14:21:

I'm thinking about it too ,wish I had times :-(

Here is some tracks if someone wants to try:

  • Check if samplerbox works on the Raspberry Pi Zero with a powered usb hub.
    Since cpu/ram is lower than the Raspberry Pi 2 it could have playback issue.

Since there are only 1 USB port, we could only use the usb DAC.

  • This means the samples will be on the sdcard, so this could be harder to copy samples.
  • This also means we need to either use a keyboard with midi output or an custom controller made with an arduino mini.

Maybe a DAC plugged directly on the GPIO could be use so we can still use a USB keyboard ?

If I have some times, I'll do some test, I happen to have a Raspberry Pi zero ^^

C
Cook posted Dec 9, 18:27:
M
Mirco posted Dec 10, 09:35:

Hi someone have try to build samplerbox with orange pi ?
I have some problem with snd module ...
Thanks
Mirco

S
Sean Fear posted Jun 26, 08:53:

I tried a Pi Zero and had no luck. I read the first post and it sounded very complicated. My question is why doesn't using a powered USB hub work?

Like this:
1) Write the image to the SD Card and insert it into Pi Zero.
2) Attach powered hub to Pi Zero.
3) Attach midi keyboard, USB stick with samples, usb audio interface, and keyboard/mouse to hub.
4) Attach HDMI out to monitor
5) Attach power to Pi Zero

Results:
Pi Zero LED alternates between solid and blinking, no HDMI output is present

Expected:
Things work.

Z
zcarlos posted Dec 16, 14:05:

I tried Samplerbox on Orange pi PC.
In few minutes I had samplerbox running. It is easy.

  • Install Armbian Server
  • Install Samplerbox manually; follow samplerbox github instructions
  • Test it:
    $ sudo python samplerbox.py

If you wanna autorun samplerbox on boot without login (and get ready in 8 seconds):
(Change yourusername by your real user name created on Armbian Server OS setup)

  • Create samplerbox.sh:
    $ sudo nano /home/yourusername/SamplerBox/samplerbox.sh

!/bin/sh

python /home/yourusername/SamplerBox/samplerbox.py

  • Make exec:
    $ sudo chmod 777 /home/yourusername/SamplerBox/samplerbox.sh

  • Create service:
    $ sudo nano /etc/systemd/system/samplerbox.service

[Unit]
Description=Starts SamplerBox
DefaultDependencies=false
[Service]
Type=simple
ExecStart=/home/yourusername/SamplerBox/samplerbox.sh
WorkingDirectory=/home/yourusername/SamplerBox/
[Install]
WantedBy=local-fs.target

  • Enable service
    $ sudo systemctl enable /etc/systemd/system/samplerbox.service

Joseph, thanks for samplerbox ;)

Z
zcarlos posted Dec 16, 14:09:

Ops.
!/bin/sh must be #!/bin/sh

A
AlexM posted Dec 16, 15:57:

Awesome! Good to know - thanks for sharing that :)

Z
zcarlos posted Dec 17, 01:04:

Hello.
I run samplerbox fork for windows on Z83 Intel Mini PC Atom X5-Z8300 but, out of the box, I feel latency is not very good. I only play with it a minute, didn't try any tweak.
So I used Ubuntu Server 16.04 as OS installed beside Windows 10.
Some integrated peripherals are not running on this Ubuntu release (wifi, sound, ...) but Ethernet is ok, so only needed a cheap USB audio DAC.
Box has 2GB. It runs flowsly headless.
I can select OS to boot Ubuntu, Windows; defaut is Ubuntu; SamplerBox autoruns on start.
;)

A
AlexM posted Dec 17, 01:47:

I've had some latency issues in Windows as well. Try using ASIO4ALL - it got me down to <10ms (from about 30-40).
Nice work!

S
Sparky Lectric posted Dec 21, 16:15:

to Sean Fear, the key to all trouble shooting is to start simple. Every layer of complexity adds another opportunity for glitches.

try the pi zero with just the sd card, powered usb hub and hdmi monitor connected, to make sure it boots. You could have a bad image on the sd card, a bad card, a bad usb hub, a bad cable, a bad power supply for the usb hub. you might want to try with just power from a phone power supply (usb 5v) on the power lead and a usb keyboard plugged into the usb port to test if the problem lies in the USB hub by not connecting it at all.

I picked up a pi zero last night and plan on trying samplerbox on it this weekend. I'll let you know how it works out for me. 1st I'm going to try Rasbian and make sure it works. I've got a USB sound card arriving thursday (5$ same price as the Zero) I'll make sure it works in Debian before I try it with Samplerbox.

A
Ayskura posted Apr 3, 04:29:

any news? I plan to use PiZero with a novation Xio synth which with only 1 usb does both audio and midi... Also I heard of audio via PWM would it be possible to use it with SamplerBox? Thank you for this awesome system!!! <3

A
Ayskura posted Apr 3, 04:30:

any news? I plan to use PiZero with a novation Xio synth which with only 1 usb does both audio and midi... Also I heard of audio via PWM would it be possible to use it with SamplerBox? Thank you for this awesome system!!! <3

C
Calvey posted May 26, 13:47:

Hi,

Is there any news about how to use SamplerBox on Pi Zero?

I would be interested in that as it doesn't work for me on Raspberry Pi Model B: no sound.

Thanks.

A
Ayskura posted Jun 5, 09:45:

I managed to make pi zero work with audio from HDMI adaptor and works perfectly! awesome!!

I added

hdmi_drive=2

to the

/boot/config.txt

and there we go!

C
Calvey posted Jun 22, 15:13:

Hi Ayskura,

I added this line in th config.txt file and it worked! Thanks a lot.

A
Ayskura posted Jun 23, 04:54:

you're welcome!

...

  (not published)
  I want to post as guest
 

Post