Select Option Encoder/Switch not accurate

Hi @smespresati!

I think i found and fix the problem. It was affecting only to setBfree engine … but your log put me in the right way! Update and try now …

Thanks!

Hi @jofemodo,

Here my testings with the new patch.

It looks like setBfree presets are fixed, Nevertheless not all other presets work properly, CP-XXX and ZY-001 still have the Back switch issue.

I don’t know if it is a personal feeling but, with the new patch, I’ve found the selection rotary encoder a bit less responsive, as described in the initial post of this thread.

For me all these are minor issues, I mean you can take the time you to need to fix it. It’s not urgent!! :wink:

Below the log when CP-002 preset is selected. Back switch stop working


pi@zynthian ~ $ sudo /etc/init.d/zynthian stop
pi@zynthian ~ $ sudo /etc/init.d/zynthian start
pi@zynthian ~ $

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian
Current Operating System: Linux zynthian 4.1.19-v7+ #852 SMP Mon Mar 7 14:39:14 GMT 2016 armv7l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0x2a21041 bcm2709.serial=0x7c1e1ce4 smsc95xx.macaddr=B8:27:EB:1E:1C:E4 bcm2708_fb.fbswap=1 bcm2709.uart_clock=2441000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Build Date: 11 January 2016 01:32:44PM
xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support)
Current version of pixman: 0.33.3
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Sun Jun 12 10:14:42 2016
(==) Using config directory: “/etc/X11/xorg.conf.d”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
./zynthian.sh: line 33: echo: write error: Device or resource busy
performanceperformanceperformanceperformancejackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK MIDI <-> ALSA sequencer MIDI bridge, version 8 (7383d268c4bfe85df9f10df6351677659211d1ca) built on Mon May 20 04:37:10 2013
Copyright 2006,2007 Dmitry S. Baikov
Copyright 2007,2008,2009,2011,2012 Nedko Arnaudov

Bridge starting…
Using JACK server ‘default’
Hardware ports will be exported.
Bridge started
Press ctrl-c to stop the bridge
Failed to open server
port created: Midi Through [14] (capture): Midi Through Port-0
port created: Midi Through [14] (playback): Midi Through Port-0
port created: USB ProKeys 88 [20] (capture): USB ProKeys 88 MIDI 1
port created: USB ProKeys 88 [20] (playback): USB ProKeys 88 MIDI 1
port created: USB ProKeys 88 [20] (capture): USB ProKeys 88 MIDI 2
HW version PROTOTYPE-4
Zynswitches poll thread created successfully
SWITCHES INIT!
SETUP GPIO SWITCH 0 => 107
SETUP GPIO SWITCH 1 => 23
SETUP GPIO SWITCH 2 => 106
SETUP GPIO SWITCH 3 => 2
Short Switch 3
Getting Bank List for Carla
Loading snapshot /home/pi/zynthian/zynthian-ui/my-data/snapshots/CP-002.zss =>
{“max_chan”: 10, “midi_chan”: 0, “ctrl_config”: [[[[[“Attack”, 85, 0, 127], [“Decay”, 86, 46, 127], [“Release”, 87, 31, 127], [“Coarse”, 90, 38, 127]], 0, “MDA DX10#1”], [[[“Fine”, 91, 41, 127], [“Mod Init”, 71, 29, 127], [“Mod Dec”, 5, 101, 127], [“Mod Sus”, 74, 6, 127]], 0, “MDA DX10#2”], [[[“Mod Rel”, 20, 101, 127], [“Mod Vel”, 21, 114, 127], [“Vibrato”, 1, 0, 127], [“Octave”, 22, 63, 127]], 0, “MDA DX10#3”], [[[“FineTune”, 23, 63, 127], [“Waveform”, 73, 56, 127], [“Mod Thru”, 12, 0, 127], [“LFO Rate”, 72, 52, 127]], 0, “MDA DX10#4”]], null, null, null, null, null, null, null, null, null, null, null, null, null, null, null], “bank_index”: [5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], “instr_index”: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], “engine”: “Carla”, “instr_name”: [“Bright E.Piano”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”], “engine_nick”: “CP”, “bank_name”: [“mda DX10”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”], “instr_set”: [[“Bright E.Piano”, [0, 0, 0], “Bright E.Piano”], null, null, null, null, null, null, null, null, null, null, null, null, null, null, null], “bank_set”: [["/home/pi/zynthian/zynthian-ui/data/carla/mda_DX10.carxp", 5, “mda DX10”, “_”], null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]}
Set MIDI CH 0, Bank MSB: 5
REMOTE DISPLAY: 192.168.1.106:0
Running Command: (’/usr/local/bin/carla-patchbay’, ‘/home/pi/zynthian/zynthian-ui/data/carla/mda_JX10.carxp’)
Starting Engine Carla
OSC target in port 6693
OSC server running in port 19916
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
Set MIDI CH 0, Bank MSB: 0, Bank LSB: 0, Program: 0
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’


Below the log when preset ZY-001 is selected, also in this case Back switch stop working


X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian
Current Operating System: Linux zynthian 4.1.19-v7+ #852 SMP Mon Mar 7 14:39:14 GMT 2016 armv7l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0x2a21041 bcm2709.serial=0x7c1e1ce4 smsc95xx.macaddr=B8:27:EB:1E:1C:E4 bcm2708_fb.fbswap=1 bcm2709.uart_clock=2441000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Build Date: 11 January 2016 01:32:44PM
xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support)
Current version of pixman: 0.33.3
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Sun Jun 12 10:14:04 2016
(==) Using config directory: “/etc/X11/xorg.conf.d”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
./zynthian.sh: line 33: echo: write error: Device or resource busy
performanceperformanceperformanceperformancejackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK MIDI <-> ALSA sequencer MIDI bridge, version 8 (7383d268c4bfe85df9f10df6351677659211d1ca) built on Mon May 20 04:37:10 2013
Copyright 2006,2007 Dmitry S. Baikov
Copyright 2007,2008,2009,2011,2012 Nedko Arnaudov

Bridge starting…
Using JACK server 'default’
Hardware ports will be exported.
Failed to open server
HW version PROTOTYPE-4
Zynswitches poll thread created successfully
Bridge started
Press ctrl-c to stop the bridge
port created: Midi Through [14] (capture): Midi Through Port-0
port created: Midi Through [14] (playback): Midi Through Port-0
port created: USB ProKeys 88 [20] (capture): USB ProKeys 88 MIDI 1
SWITCHES INIT!
port created: USB ProKeys 88 [20] (playback): USB ProKeys 88 MIDI 1
SETUP GPIO SWITCH 0 => 107
port created: USB ProKeys 88 [20] (capture): USB ProKeys 88 MIDI 2
SETUP GPIO SWITCH 1 => 23
SETUP GPIO SWITCH 2 => 106
SETUP GPIO SWITCH 3 => 2
Short Switch 3
REMOTE DISPLAY: 192.168.1.106:0
Starting Engine ZynAddSubFX
Getting Bank List for ZynAddSubFX
OSC target in port 6693
OSC server running in port 13301
Loading snapshot /home/pi/zynthian/zynthian-ui/my-data/snapshots/ZY-001.zss =>
{“bank_set”: [["/home/pi/zynthian/zynthian-ui/data/zynbanks/Arpeggios", 0, “Arpeggios”, “"], ["/home/pi/zynthian/zynthian-ui/data/zynbanks/Collection", 4, “Collection”, "”], ["/home/pi/zynthian/zynthian-ui/data/zynbanks/net-wisdom", 24, “net-wisdom”, “_”], null, null, null, null, null, null, null, null, null, null, null, null, null], “instr_index”: [2, 6, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], “ctrl_config”: [[[[[“volume”, “/part0/Pvolume”, 96, 127], [“modulation”, 1, 0, 127], [“filter Q”, 71, 86, 127], [“filter cutoff”, 74, 110, 127]], 0, “main”], [[[“expression”, 11, 127, 127], [“modulation”, 1, 0, 127], [“reverb”, 91, 64, 127], [“chorus”, 93, 2, 127]], 0, “effects”], [[[“bandwidth”, 75, 64, 127], [“modulation amplitude”, 76, 127, 127], [“resonance frequency”, 77, 64, 127], [“resonance bandwidth”, 78, 64, 127]], 0, “resonance”]], [[[[“volume”, “/part1/Pvolume”, 96, 127], [“modulation”, 1, 0, 127], [“filter Q”, 71, 64, 127], [“filter cutoff”, 74, 64, 127]], 0, “main”], [[[“expression”, 11, 127, 127], [“modulation”, 1, 0, 127], [“reverb”, 91, 64, 127], [“chorus”, 93, 2, 127]], 0, “effects”], [[[“bandwidth”, 75, 64, 127], [“modulation amplitude”, 76, 127, 127], [“resonance frequency”, 77, 64, 127], [“resonance bandwidth”, 78, 64, 127]], 0, “resonance”]], [[[[“volume”, “/part2/Pvolume”, 96, 127], [“modulation”, 1, 0, 127], [“filter Q”, 71, 64, 127], [“filter cutoff”, 74, 64, 127]], 0, “main”], [[[“expression”, 11, 127, 127], [“modulation”, 1, 0, 127], [“reverb”, 91, 64, 127], [“chorus”, 93, 2, 127]], 0, “effects”], [[[“bandwidth”, 75, 64, 127], [“modulation amplitude”, 76, 127, 127], [“resonance frequency”, 77, 64, 127], [“resonance bandwidth”, 78, 64, 127]], 0, “resonance”]], null, null, null, null, null, null, null, null, null, null, null, null, null], “engine_nick”: “ZY”, “max_chan”: 10, “bank_name”: [“Arpeggios”, “Collection”, “net-wisdom”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”], “midi_chan”: 0, “instr_set”: [[“0003-Arpeggio3.xiz”, [0, 0, 2], “Arpeggio3”], [“0007-Ethereal.xiz”, [4, 0, 6], “Ethereal”], [“0035-Vangelis Saw - C.xiz”, [24, 0, 34], “Vangelis Saw - C”], null, null, null, null, null, null, null, null, null, null, null, null, null], “bank_index”: [0, 4, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], “instr_name”: [“Arpeggio3”, “Ethereal”, “Vangelis Saw - C”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”, “”], “engine”: “ZynAddSubFX”}
Set MIDI CH 0, Bank MSB: 0
Set MIDI CH 1, Bank MSB: 4
Set MIDI CH 2, Bank MSB: 24*


Hi @smespresati!
There is a new software version in the repository with bugfixes and improvements. Could you try it and see if it fixes some of your problems? Thanks!

Hi @jofemodo,

I still have some problems…but different problems. The issue I reported seems fixed but I have discovered some new.

To start with a “clean environment” I decided to reimage my SD and then extend partition throught raspi-config command. Once done I updated software and library.

At first, I didn’t notice any problem, but navigating throught different engines and instrument I discovered a Carla issue.If I select Carla and then select the first slot zynthian shows a list tof plugins to select…then the I tried to move selection and realized select rotary wasn’t working…select and back switches neither. I did the test several times and sometimes even the Zbox “rebooted” but stayed frozen at Zynthian logo, so I had to unplug/plug power to boot my Zbox.

Below you can see the ssh session log for you to review.

At this point I’m wondering if I’m doing something wrong. Has anybodyody else experienced the issue? Are you been able to reproduce the behaviors I described? I just want to know I’m not looking for ghosts…:scream:

Regards, Jose


pi@zynthian ~ $ sudo /etc/init.d/zynthian stop
pi@zynthian ~ $ sudo /etc/init.d/zynthian startx
pi@zynthian ~ $

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian
Current Operating System: Linux zynthian 4.1.19-v7+ #852 SMP Mon Mar 7 14:39:14 GMT 2016 armv7l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0x2a21041 bcm2709.serial=0x7c1e1ce4 smsc95xx.macaddr=B8:27:EB:1E:1C:E4 bcm2708_fb.fbswap=1 bcm2709.uart_clock=2441000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Build Date: 11 January 2016 01:32:44PM
xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support)
Current version of pixman: 0.33.3
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (–) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: “/var/log/Xorg.0.log”, Time: Sun Jun 12 09:31:34 2016
(==) Using config directory: “/etc/X11/xorg.conf.d”
(==) Using system config directory “/usr/share/X11/xorg.conf.d”
./zynthian.sh: line 33: echo: write error: Device or resource busy
performanceperformanceperformanceperformancejackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK MIDI <-> ALSA sequencer MIDI bridge, version 8 (7383d268c4bfe85df9f10df6351677659211d1ca) built on Mon May 20 04:37:10 2013
Copyright 2006,2007 Dmitry S. Baikov
Copyright 2007,2008,2009,2011,2012 Nedko Arnaudov

Bridge starting…
Using JACK server ‘default’
Hardware ports will be exported.
Failed to open server
Bridge started
Press ctrl-c to stop the bridge
port created: Midi Through [14] (capture): Midi Through Port-0
port created: Midi Through [14] (playback): Midi Through Port-0
port created: USB ProKeys 88 [20] (capture): USB ProKeys 88 MIDI 1
port created: USB ProKeys 88 [20] (playback): USB ProKeys 88 MIDI 1
port created: USB ProKeys 88 [20] (capture): USB ProKeys 88 MIDI 2
HW version PROTOTYPE-4
Zynswitches poll thread created successfully
SWITCHES INIT!
SETUP GPIO SWITCH 0 => 107
SETUP GPIO SWITCH 1 => 23
SETUP GPIO SWITCH 2 => 106
SETUP GPIO SWITCH 3 => 2
Short Switch 1
Short Switch 3
Getting Bank List for Carla
Short Switch 3
MIDI Chan Selected: 0
Getting Bank List for Carla
Bank Selected: calf monosynth (0)
Set MIDI CH 0, Bank MSB: 0
REMOTE DISPLAY: 192.168.1.106:0
Running Command: (’/usr/local/bin/carla-patchbay’, ‘/home/pi/zynthian/zynthian-ui/data/carla/calf_monosynth.carxp’)
Starting Engine Carla
OSC target in port 6693
OSC server running in port 11923
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
PATH=CP#1 > calf monosynth
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’
ERROR engine_carla::osc_register: sending failed: b’Connection refused’

Currently, the carla engine is quite unstable yet. It’s usable, but it stop working after changing the patch 2 or 3 times. If you use a remote display is more unstable yet. Sometimes works, sometimes not … ;-(
I’ve to improve it … :wink: