Sfz - flac samples

Nov 13 16:25:57 zynthian startx[1754]: INFO:root:Preset Selected: IvyAudio-PianoIn162-Close (0)
Nov 13 16:26:01 zynthian startx[1754]: ERROR:root:sfz (ERR 0)
Nov 13 16:26:01 zynthian startx[1754]: DEBUG:root:SET CONTROLLER SCREEN main
Nov 13 16:26:01 zynthian startx[1754]: DEBUG:root:ZCTRL ‘volume’: 96 (0 -> 127), None, None
Nov 13 16:26:01 zynthian startx[1754]: DEBUG:root:ZCTRL ‘pan’: 64 (0 -> 127), None, None
Nov 13 16:26:01 zynthian startx[1754]: DEBUG:root:ZCTRL ‘portamento on/off’: 0 (0 -> 64), [‘off’, ‘on’], [0, 64]
Nov 13 16:26:01 zynthian startx[1754]: DEBUG:root:ZCTRL ‘sustain’: 0 (0 -> 64), [‘off’, ‘on’], [0, 64]

I have one more thing to try,

I opened the sfz in Polyphony and exported it as sfz.

The sfz file changed somewhat and all the samples are now in one folder.

I will upload that one this evening.

Now that I’ve exported it to sfz (5gb) from polyphony it works but it just sounds like shit.

The samples in the computers sound fine.

I am putting this mission on hold for now, before I loose my mind.

Haha.

1 Like

I got mine unzipped. I’m going to try it with linuxsampler on my laptop first. I just have to finish rebuilding linuxsampler. Good lord non-FOSS-compatable licences are annoying.

Dammit. Works fine on my laptop, No errors at all :frowning:

Have you uploaded it to your zynthian?

Yes, and the unsurprising result is…

Nov 13 23:23:05 zynthian startx[485]: ERROR:root:FAILED lscp_send_single(LOAD INSTRUMENT '/zynthian/zynthian-my-data/soundfonts/sfz/Ivy Audio - Piano in 162 sfz/IvyAudio-PianoIn162-Close.sfz' 0 0
Nov 13 23:23:05 zynthian startx[485]: ): timed out
Nov 13 23:23:22 zynthian kernel: vcgencmd invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0
Nov 13 23:23:22 zynthian kernel: vcgencmd cpuset=/ mems_allowed=0
Nov 13 23:23:22 zynthian kernel: CPU: 3 PID: 5097 Comm: vcgencmd Tainted: G         C        4.19.75-v7l+ #1270
Nov 13 23:23:22 zynthian kernel: Hardware name: BCM2835
Nov 13 23:23:22 zynthian kernel: [<c0212d10>] (unwind_backtrace) from [<c020d530>] (show_stack+0x20/0x24)
Nov 13 23:23:22 zynthian kernel: [<c020d530>] (show_stack) from [<c097fb20>] (dump_stack+0xd4/0x118)
Nov 13 23:23:22 zynthian kernel: [<c097fb20>] (dump_stack) from [<c033f6e4>] (dump_header+0x80/0x250)
Nov 13 23:23:22 zynthian kernel: [<c033f6e4>] (dump_header) from [<c033ea5c>] (oom_kill_process+0x358/0x3a8)
Nov 13 23:23:22 zynthian kernel: [<c033ea5c>] (oom_kill_process) from [<c033f38c>] (out_of_memory+0x134/0x36c)
Nov 13 23:23:22 zynthian kernel: [<c033f38c>] (out_of_memory) from [<c0345750>] (__alloc_pages_nodemask+0xfc0/0x1180)
Nov 13 23:23:22 zynthian kernel: [<c0345750>] (__alloc_pages_nodemask) from [<c038dc20>] (__read_swap_cache_async+0x154/0x1f8)
Nov 13 23:23:22 zynthian kernel: [<c038dc20>] (__read_swap_cache_async) from [<c038e390>] (swapin_readahead+0x2b8/0x508)
Nov 13 23:23:22 zynthian kernel: [<c038e390>] (swapin_readahead) from [<c0377468>] (do_swap_page+0x5a0/0x914)
Nov 13 23:23:22 zynthian kernel: [<c0377468>] (do_swap_page) from [<c03799b4>] (handle_mm_fault+0x508/0xe64)
Nov 13 23:23:22 zynthian kernel: [<c03799b4>] (handle_mm_fault) from [<c099d934>] (do_page_fault+0x330/0x3a4)
Nov 13 23:23:22 zynthian kernel: [<c099d934>] (do_page_fault) from [<c02174a8>] (do_DataAbort+0x50/0xec)
Nov 13 23:23:22 zynthian kernel: [<c02174a8>] (do_DataAbort) from [<c0201ca4>] (__dabt_usr+0x44/0x60)
Nov 13 23:23:22 zynthian kernel: Exception stack(0xed77bfb0 to 0xed77bff8)
Nov 13 23:23:22 zynthian kernel: bfa0:                                     000006bf 00000000 b6f5d6c8 00000000
Nov 13 23:23:22 zynthian kernel: bfc0: b6f5d4e8 70000022 6ffffdff 6ffffeff 00000003 bee7c664 b6f5d644 bee7c5e4
Nov 13 23:23:22 zynthian kernel: bfe0: 0000000f bee7c4e0 b6eec0c4 b6f356b0 60000010 ffffffff
Nov 13 23:23:22 zynthian kernel: Mem-Info:
Nov 13 23:23:22 zynthian kernel: active_anon:2 inactive_anon:52 isolated_anon:0
                                  active_file:81 inactive_file:2 isolated_file:0
                                  unevictable:217681 dirty:0 writeback:9 unstable:0
                                  slab_reclaimable:3484 slab_unreclaimable:6571
                                  mapped:23902 shmem:20121 pagetables:1017 bounce:0
                                  free:4199 free_pcp:1 free_cma:1
Nov 13 23:23:22 zynthian kernel: Node 0 active_anon:8kB inactive_anon:208kB active_file:324kB inactive_file:8kB unevictable:870724kB isolated(anon):0kB isolated(file):0kB mapped:95608kB dirty:0kB writeback:36kB shmem:80484kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
Nov 13 23:23:22 zynthian kernel: DMA free:16768kB min:16384kB low:20480kB high:24576kB active_anon:28kB inactive_anon:96kB active_file:132kB inactive_file:264kB unevictable:694136kB writepending:12kB present:786432kB managed:762852kB mlocked:694136kB kernel_stack:1328kB pagetables:2748kB bounce:0kB free_pcp:4kB local_pcp:0kB free_cma:0kB
Nov 13 23:23:22 zynthian kernel: lowmem_reserve[]: 0 0 116 116
Nov 13 23:23:22 zynthian kernel: HighMem free:28kB min:180kB low:1168kB high:2156kB active_anon:0kB inactive_anon:104kB active_file:0kB inactive_file:112kB unevictable:176236kB writepending:24kB present:184320kB managed:184320kB mlocked:176236kB kernel_stack:0kB pagetables:1320kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:4kB
Nov 13 23:23:22 zynthian kernel: lowmem_reserve[]: 0 0 0 0
Nov 13 23:23:22 zynthian kernel: DMA: 378*4kB (UME) 216*8kB (UME) 136*16kB (UME) 48*32kB (UME) 46*64kB (UME) 26*128kB (UME) 8*256kB (UE) 4*512kB (ME) 0*1024kB 0*2048kB 0*4096kB = 17320kB
Nov 13 23:23:22 zynthian kernel: HighMem: 42*4kB (MC) 3*8kB (MC) 1*16kB (C) 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 208kB
Nov 13 23:23:22 zynthian kernel: 23951 total pagecache pages
Nov 13 23:23:22 zynthian kernel: 13 pages in swap cache
Nov 13 23:23:22 zynthian kernel: Swap cache stats: add 28518, delete 28507, find 3161/4451
Nov 13 23:23:22 zynthian kernel: Free swap  = 7140kB
Nov 13 23:23:22 zynthian kernel: Total swap = 102396kB
Nov 13 23:23:22 zynthian kernel: 242688 pages RAM
Nov 13 23:23:22 zynthian kernel: 46080 pages HighMem/MovableOnly
Nov 13 23:23:22 zynthian kernel: 5895 pages reserved
Nov 13 23:23:22 zynthian kernel: 16384 pages cma reserved
Nov 13 23:23:22 zynthian kernel: Tasks state (memory values in pages):
Nov 13 23:23:22 zynthian kernel: [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
Nov 13 23:23:22 zynthian kernel: [    107]     0   107     4732      343   131072      210             0 systemd-journal
Nov 13 23:23:22 zynthian kernel: [    147]     0   147     4507      367    40960      232         -1000 systemd-udevd
Nov 13 23:23:22 zynthian kernel: [    304]   100   304     5595      359    61440      167             0 systemd-timesyn
Nov 13 23:23:22 zynthian kernel: [    406]     0   406     1952      331    36864       48             0 zynthian_webcon
Nov 13 23:23:22 zynthian kernel: [    407]   108   407     1475      388    36864       79             0 avahi-daemon
Nov 13 23:23:22 zynthian kernel: [    409]     0   409      923      446    28672       54             0 alsactl
Nov 13 23:23:22 zynthian kernel: [    416]     0   416     3252      373    53248      167             0 systemd-logind
Nov 13 23:23:22 zynthian kernel: [    420]   104   420     1640      367    36864      113          -900 dbus-daemon
Nov 13 23:23:22 zynthian kernel: [    423]     0   423     6914        0    40960       28             0 rngd
Nov 13 23:23:22 zynthian kernel: [    438]   108   438     1443        0    36864       63             0 avahi-daemon
Nov 13 23:23:22 zynthian kernel: [    453]     0   453    15248      782   147456     5266             0 zynthian_webcon

It immediately runs out of memory and oom-killer run in and blats it. I only have the 1GiB pi4. It’s possible it might run in a 4GiB one as on my laptop it only took up about 3GiB ram. Otherwise it’s a bust. Pianoteq is probably the better bet if you want a Steinway B.

Ok. That explains.

Well we can comfort us in knowing that the Salamander is awesome.

Thanks for the help.

3 Likes

I have a problem with Salamander in that the dynamics change inappropriately between keys, particularly noticeable on higher keys. Playing a simple scale from C7 down to C6 I get notes being played louder and softer as I go. Also the step between samples is very noticeable. I am yet to find a free samples piano that doesn’t do this. I am amazed at Pianoteq and can’t wait until we have a platform that supports it without any xruns. I hope Santa brings me a RPi4 that does this - my RPi3 suffers the occasional xrun which is no good for me.

2 Likes

I don’t like Salamander because it’s just not a very bright piano. I really like Keppy’s Steinway D but it caused an uncomfortable number of xruns on the pi3 and still occasionally xruns on the pi4. Also linuxsampler doesn’t like the apostrophe character in the preset name.

Linuxsampler build script include some modifications to the default building options. This changes were made by @Schpion, a historic zynthianer and creator of this jewel:

He made greatly contribute to Linuxsampler engine and “tuned” the build script:

#Configure with optimizations from Schpion
./configure --enable-max-voices=21 --enable-max-streams=64 --enable-stream-min-refill=4096 --enable-refill-streams=2 --enable-stream-max-refill=131072 --enable-stream-size=262144 --disable-asm --enable-subfragment-size=64 --enable-eg-min-release-time=0.001 --enable-eg-bottom=0.0025 --enable-max-pitch=2 --enable-preload-samples=65536

As you can see, he touched a lot of optimization parameters related with the way LinuxSampler manage sample cache, sample reading, etc.

We should try the standard building options and compare.

LinuxSampler documentation may give some guidance about all this parameters …

Regards,

@Humi, @Baggypants, i just made some changes to the LinuxSampler build script:

  • upgrade versions to the last
  • comment @Schpion optimizations

You can easily rebuild LinuxSampler in your zynthian:

update_zynthian.sh
$ZYNTHIAN_SYS_DIR/scripts/recipes/install_linuxsampler_stable.sh

Regards!

3 Likes

After the update I am getting xruns with salamander.

And did you get to work the 5G soundfont?
If not, i would restore the @Schpion optimizations …

Yes and no

The flac soundfont played but sounded horrible. There was something very wrong.

I’m happy to reverse the update and get Salamander to work.

How do I do it?

Probably the flac one was causing a mad flurry of xruns to make it sound horrible.

Probably

Simply repeat the steps you already did:

update_zynthian.sh
$ZYNTHIAN_SYS_DIR/scripts/recipes/install_linuxsampler_stable.sh

Regards,

1 Like

I updated and now I get this screen.

edit:

I can SSH onto it now! Whoop whoop!

What do I do now?

Update again. Current code is working OK, so it should work:

update_zynthian.sh

If it doesn’t work, send the logs:

systemctl stop zynthian
zynthian.sh

Regards,