From owner-freebsd-multimedia@freebsd.org Sun Nov 11 07:13:18 2018 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6FCDC112DFF1 for ; Sun, 11 Nov 2018 07:13:18 +0000 (UTC) (envelope-from SRS0=jWpO=NW=ladisch.de=clemens@webclient5.webclient5.de) Received: from webclient5.webclient5.de (webclient5.webclient5.de [IPv6:2a01:4f8:212:88::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9063C7301D for ; Sun, 11 Nov 2018 07:13:17 +0000 (UTC) (envelope-from SRS0=jWpO=NW=ladisch.de=clemens@webclient5.webclient5.de) Received: from olorin.ladisch.de (x2f7f8f2.dyn.telefonica.de [2.247.248.242]) by webclient5.webclient5.de (Postfix) with ESMTPSA id 2FB4A5583998 for ; Sun, 11 Nov 2018 08:13:14 +0100 (CET) Subject: Re: jack_umidi - jack_midi_event_get() failed, lost MIDI event To: freebsd-multimedia@freebsd.org References: From: Clemens Ladisch Message-ID: Date: Sun, 11 Nov 2018 08:11:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.4 at webclient5 X-Virus-Status: Clean X-Rspamd-Queue-Id: 9063C7301D X-Spamd-Result: default: False [-2.95 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[ladisch.de]; MX_GOOD(-0.01)[webclient5.webclient5.de]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[clemens@ladisch.de,SRS0=jWpO=NW=ladisch.de=clemens@webclient5.webclient5.de]; RECEIVED_SPAMHAUS_PBL(0.00)[242.248.247.2.zen.spamhaus.org : 127.0.0.10]; R_DKIM_NA(0.00)[]; IP_SCORE(-1.18)[ipnet: 2a01:4f8::/29(-2.92), asn: 24940(-2.99), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; FROM_NEQ_ENVFROM(0.00)[clemens@ladisch.de,SRS0=jWpO=NW=ladisch.de=clemens@webclient5.webclient5.de]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2018 07:13:18 -0000 Marcel Bonnet wrote:> Hello. > I wrote a program to send System Exclusive Messages to my Roland XP-30 > Keyboard. This program (QStage) connects to jack_umidi . > I send a burst of 4296 events every time I load a sysex file. > > My program does not print "NOTE LOST", so I suppose that "maybe" I am using > the API correctly. But jack_umidi is zombiffied DPRINTing hundreds times > the same error only after I load the second or third sysexfile (even if > its the same file). > > "umidi_write:160: jack_midi_event_get() failed, lost MIDI event." What timestamps (sample offsets) are you using? Jack is all about sample-accurate event timing, so I suspect that events get lost because they cannot be transmitted at what Jack thinks is the desired time. > I started jackd with a Midi BufSize > 4296 * 4 bytes If you take care that events are not queued faster than they can be transmitted (about 3125 bytes/s), the buffer size should not matter. Regards, Clemens