Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-09 Thread Herbert Liechti
Hi Vaughan

Unfortunately the error is the same when I compile with this change.

Best regards
Herbert

2017-03-10 4:04 GMT+01:00 Vaughan McAlley :

> On 10 March 2017 at 02:00, Herbert Liechti 
> wrote:
> >
> >
> > 2017-02-24 13:49 GMT+01:00 Vaughan McAlley :
> >>
> >> Greetings,
> >>
> >> I’m pleased to announce LilyQuick,
> >
> >
> > Hello
> >
> > I tried to compile LilyQuick on a Ubuntu
> >
> > Distributor ID: Ubuntu
> > Description: Ubuntu 16.04.1 LTS
> > Release: 16.04
> > Codename: xenial
> >
> > When I run make I get the following error:
> >
> >  gcc -ILuaSource -LLuaSource -o lq LilyQuick.c -ldl -lm \
> > -llua -lpthread -lasound
> > /usr/bin/ld: LuaSource/liblua.a(lmathlib.o): undefined reference to
> symbol
> > 'atan2@@GLIBC_2.2.5'
> > /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO aus der
> > Kommandozeile fehlt
> > collect2: error: ld returned 1 exit status
> > Makefile:4: die Regel für Ziel „all“ scheiterte
> > make: *** [all] Fehler 1
> >
> >
> > any suggestions?
> >
> > Best regards
>
> Hi Herbert,
>
> Does it work if you change line 8 in the Makefile to this?
>
> gcc -ILuaSource -LLuaSource -o lq LilyQuick.c -ldl -Bstatic -lm \
>
> (don't mess with the start of the line: Make requires a proper tab there)
>
> This forces GCC to load the math library (-lm) statically instead of
> dynamically, as it can't find a dynamic maths library. It may work...
>
> Vaughan
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
herbert.liec...@thinx.ch,  ThinX AG,  Bielstrasse 69,  CH-4500 Solothurn
Tel +41 (0)32 623 81 66, Mobile +41 (0)76 334 81 66, http://www.thinx.ch
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-09 Thread Vaughan McAlley
On 10 March 2017 at 02:00, Herbert Liechti  wrote:
>
>
> 2017-02-24 13:49 GMT+01:00 Vaughan McAlley :
>>
>> Greetings,
>>
>> I’m pleased to announce LilyQuick,
>
>
> Hello
>
> I tried to compile LilyQuick on a Ubuntu
>
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.1 LTS
> Release: 16.04
> Codename: xenial
>
> When I run make I get the following error:
>
>  gcc -ILuaSource -LLuaSource -o lq LilyQuick.c -ldl -lm \
> -llua -lpthread -lasound
> /usr/bin/ld: LuaSource/liblua.a(lmathlib.o): undefined reference to symbol
> 'atan2@@GLIBC_2.2.5'
> /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO aus der
> Kommandozeile fehlt
> collect2: error: ld returned 1 exit status
> Makefile:4: die Regel für Ziel „all“ scheiterte
> make: *** [all] Fehler 1
>
>
> any suggestions?
>
> Best regards

Hi Herbert,

Does it work if you change line 8 in the Makefile to this?

gcc -ILuaSource -LLuaSource -o lq LilyQuick.c -ldl -Bstatic -lm \

(don't mess with the start of the line: Make requires a proper tab there)

This forces GCC to load the math library (-lm) statically instead of
dynamically, as it can't find a dynamic maths library. It may work...

Vaughan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-09 Thread Herbert Liechti
2017-02-24 13:49 GMT+01:00 Vaughan McAlley :

> Greetings,
>
> I’m pleased to announce LilyQuick,


Hello

I tried to compile LilyQuick on a Ubuntu

Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

When I run make I get the following error:

 gcc -ILuaSource -LLuaSource -o lq LilyQuick.c -ldl -lm \
-llua -lpthread -lasound
/usr/bin/ld: LuaSource/liblua.a(lmathlib.o): undefined reference to symbol
'atan2@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO aus der
Kommandozeile fehlt
collect2: error: ld returned 1 exit status
Makefile:4: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 1


any suggestions?

Best regards
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-08 Thread Johan Vromans
On Thu, 9 Mar 2017 17:48:59 +1100, Vaughan McAlley 
wrote:

> Sorry missed that one. The alsa_seq driver is the one that works,
> couldn't tell you why :)

Indeed, now it all works (except that qsynth is not terminated when lq
exits).

The driver setting is very problematic since I use qsynth often standalone.
For standalone use, the driver needs to be oss. But when I start lq qsynth
will hang on the oss driver. So I need to kill lq, qsynth becomes active,
reconfigure for alsa_seq, exit, and restart lq. And not forget to
reconfigure for oss when using standalone (this is easy, command line
option -m alsa will do this).

Nevertheless is lq a handy tool!

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-08 Thread Vaughan McAlley
On 5 March 2017 at 03:27, Johan Vromans  wrote:
> On Sat, 4 Mar 2017 16:58:14 +1100, Vaughan McAlley 
> wrote:
>
>> I installed Fedora on to a spare partition and LilyQuick worked! A bit
>> annoying :-) I thought it might have to do with SELinux permissions,
>> but it appears not.
>>
>> Could you try typing
>>
>> sudo cat /dev/input/by-id/usb-Apple__Inc_Apple_Keyboard-event-kbd
>>
>> (replacing my keyboard name with the name you have in LQConfig.lua).
>> If you see garbage when you type, it should be connecting to the
>> keyboard correctly. Otherwise maybe the keyboard name is wrong.
>
> The latter turns out to be the case. It's a bit confusing when both the
> QWERTY and MIDI keyboards are called 'keyboard'. Now lq basically works.
>
> I do, however, still have a problem with getting qsynth configured right.
> What setting (driver / device) do you use for its MIDI input?
>
> -- Johan
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Sorry missed that one. The alsa_seq driver is the one that works,
couldn't tell you why :)

Vaughan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-04 Thread Johan Vromans
On Sat, 4 Mar 2017 16:58:14 +1100, Vaughan McAlley 
wrote:

> I installed Fedora on to a spare partition and LilyQuick worked! A bit
> annoying :-) I thought it might have to do with SELinux permissions,
> but it appears not.
> 
> Could you try typing
> 
> sudo cat /dev/input/by-id/usb-Apple__Inc_Apple_Keyboard-event-kbd
> 
> (replacing my keyboard name with the name you have in LQConfig.lua).
> If you see garbage when you type, it should be connecting to the
> keyboard correctly. Otherwise maybe the keyboard name is wrong.

The latter turns out to be the case. It's a bit confusing when both the
QWERTY and MIDI keyboards are called 'keyboard'. Now lq basically works.

I do, however, still have a problem with getting qsynth configured right.
What setting (driver / device) do you use for its MIDI input?

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-03-03 Thread Vaughan McAlley
On 25 February 2017 at 20:45, Johan Vromans  wrote:
> On Sat, 25 Feb 2017 10:33:11 +1100, Vaughan McAlley
>  wrote:
>
>> Maybe your keyboard is interpreting F8 as something else rather than
>> the function key proper.
>
> It seems that lq isn't intercepting keystrokes at all. After uncommenting
> line 341 nothing is printed:
>
> $ sudo ./lq
> Password:
> Welcome to LilyQuick version 0.9β
> Press F8 and a key on the MIDI keyboard to exit.
> [1] 12613
> ^[[19~^[[19~^[[19~^[[19~^C
>
> F8 generates ^[[19~ which is just echoed.
>
> -- Johan
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Johan,

I installed Fedora on to a spare partition and LilyQuick worked! A bit
annoying :-) I thought it might have to do with SELinux permissions,
but it appears not.

Could you try typing

sudo cat /dev/input/by-id/usb-Apple__Inc_Apple_Keyboard-event-kbd

(replacing my keyboard name with the name you have in LQConfig.lua).
If you see garbage when you type, it should be connecting to the
keyboard correctly. Otherwise maybe the keyboard name is wrong.

Vaughan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-26 Thread Vaughan McAlley
On 25 February 2017 at 20:45, Johan Vromans  wrote:
>
> On Sat, 25 Feb 2017 10:33:11 +1100, Vaughan McAlley
>  wrote:
>
> > Maybe your keyboard is interpreting F8 as something else rather than
> > the function key proper.
>
> It seems that lq isn't intercepting keystrokes at all. After uncommenting
> line 341 nothing is printed:
>
> $ sudo ./lq
> Password:
> Welcome to LilyQuick version 0.9β
> Press F8 and a key on the MIDI keyboard to exit.
> [1] 12613
> ^[[19~^[[19~^[[19~^[[19~^C
>
> F8 generates ^[[19~ which is just echoed.
>
> -- Johan
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

It seems a while ago, but I remember ioctl & EVIOCGRAB were difficult
to get working (though it is robust on my system now). I've tried the
other keyboard that came with my computer and it worked fine.

One possibility: LilyQuick is trying to grab the wrong keyboard
(though I'm sure you know what you are doing).

I tried to install Fedora on a spare partition, but ran into a
problem. If I succeed I'll be interested to try installing and
testing.

-Vaughan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-25 Thread Johan Vromans
On Sat, 25 Feb 2017 10:33:11 +1100, Vaughan McAlley
 wrote:

> Maybe your keyboard is interpreting F8 as something else rather than
> the function key proper.

It seems that lq isn't intercepting keystrokes at all. After uncommenting
line 341 nothing is printed:

$ sudo ./lq
Password:
Welcome to LilyQuick version 0.9β
Press F8 and a key on the MIDI keyboard to exit.
[1] 12613
^[[19~^[[19~^[[19~^[[19~^C

F8 generates ^[[19~ which is just echoed.

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-24 Thread Vaughan McAlley
On 25 February 2017 at 06:30, Johan Vromans  wrote:
> It compiles and build flawlessly on Fedora 25, both with system lua and the
> supplied lua.
>

That's nice to know.

> After adjusting the LQconfig.lua it runs, starts qsynth and I can play and
> hear notes from the MIDI keyboard. However, lq doesn't seem to handle
> keypresses. Key F8 echoes as ^[[19~ instead of terminating (in combination
> with a press of a key on the MIDI keyboard).
>
> So I seem to be missing a setting or parameter.
>

Maybe your keyboard is interpreting F8 as something else rather than
the function key proper. On my system and keyboard, F2 is interpreted
as monitor brightness up whether I'm pressing the fn key or not (see
LilyQuick.c line 360). Try uncommenting line 341 of LilyQuick.c. When
you run it, keystrokes will print three numbers in the terminal. If
you press F8 and the third number isn't 66 (see
http://lxr.free-electrons.com/source/include/linux/input.h?v=2.6.38 ),
it's not coming through as F8. A hack would be to modify line 317 to:

myExitCode = xx;

with xx being whatever number F8 produces.

> FWIW: The MIDI keyboard is /dev/midi2, and doesn't have an entry
> in /dev/input.
>
Thanks, I'll put that in the documentation.

> -- Johan

Vaughan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-24 Thread Vaughan McAlley
On 25 Feb 2017 12:30 a.m., "Urs Liska"  wrote:

Hi Vaughan,


Am 24.02.2017 um 13:49 schrieb Vaughan McAlley:
> Greetings,
>
> I’m pleased to announce LilyQuick, a greatly improved descendant of
> Finale’s Speedy Note Entry. The basic idea is to play notes on the
> MIDI keyboard with your left hand, and use the numeric keypad to enter
> the rhythms with your right hand. LilyQuick types the notes for you.
> Being able to hear the notes as you enter them is great for accuracy,
> and with a little practice you can enter music very quickly, even with
> keyboard skills as mediocre as mine.

I can't try this out because currently I don't have my MIDI keyboard and
interface available at home. But it looks like a pretty cool thing if I
understand it right that it is essentially independent of the actual
editing environment you're using because it behaves like regular
keyboard input from the editor's perspective.

I hope that installation is actually straightforward enough for people
to actually use the tool and build some base for future development.

Best
Urs

--
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Yes, it's independent of the editing environment. It sends keystrokes to
wherever the keyboard focus is.

I've tried to make installation as straightforward as I know how to at this
stage. We'll see how user-friendly it turns out to be in the real world.
But if there is demand, I could try to learn how to make a package.

Vaughan
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-24 Thread Johan Vromans
On Fri, 24 Feb 2017 23:49:19 +1100, Vaughan McAlley
 wrote:

> I’m pleased to announce LilyQuick, a greatly improved descendant of
> Finale’s Speedy Note Entry. 

Sounds very interesting...

It compiles and build flawlessly on Fedora 25, both with system lua and the
supplied lua.

After adjusting the LQconfig.lua it runs, starts qsynth and I can play and
hear notes from the MIDI keyboard. However, lq doesn't seem to handle
keypresses. Key F8 echoes as ^[[19~ instead of terminating (in combination
with a press of a key on the MIDI keyboard).

So I seem to be missing a setting or parameter.

FWIW: The MIDI keyboard is /dev/midi2, and doesn't have an entry
in /dev/input.

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-24 Thread SoundsFromSound
Vaughan McAlley wrote
> Greetings,
> 
> I’m pleased to announce LilyQuick, a greatly improved descendant of
> Finale’s Speedy Note Entry. The basic idea is to play notes on the
> MIDI keyboard with your left hand, and use the numeric keypad to enter
> the rhythms with your right hand. LilyQuick types the notes for you.
> Being able to hear the notes as you enter them is great for accuracy,
> and with a little practice you can enter music very quickly, even with
> keyboard skills as mediocre as mine.

Hi Vaughan! This is exciting news, thank you so much for working on this and
sharing it with us! I will try it out and report how things go. 

Ben




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ANN-LilyQuick-0-9beta-fast-accurate-Lilypond-MIDI-note-entry-for-Linux-tp200423p200427.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-24 Thread Urs Liska
Hi Vaughan,


Am 24.02.2017 um 13:49 schrieb Vaughan McAlley:
> Greetings,
>
> I’m pleased to announce LilyQuick, a greatly improved descendant of
> Finale’s Speedy Note Entry. The basic idea is to play notes on the
> MIDI keyboard with your left hand, and use the numeric keypad to enter
> the rhythms with your right hand. LilyQuick types the notes for you.
> Being able to hear the notes as you enter them is great for accuracy,
> and with a little practice you can enter music very quickly, even with
> keyboard skills as mediocre as mine.

I can't try this out because currently I don't have my MIDI keyboard and
interface available at home. But it looks like a pretty cool thing if I
understand it right that it is essentially independent of the actual
editing environment you're using because it behaves like regular
keyboard input from the editor's perspective.

I hope that installation is actually straightforward enough for people
to actually use the tool and build some base for future development.

Best
Urs

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


[ANN] LilyQuick 0.9beta - fast accurate Lilypond MIDI note entry for Linux

2017-02-24 Thread Vaughan McAlley
Greetings,

I’m pleased to announce LilyQuick, a greatly improved descendant of
Finale’s Speedy Note Entry. The basic idea is to play notes on the
MIDI keyboard with your left hand, and use the numeric keypad to enter
the rhythms with your right hand. LilyQuick types the notes for you.
Being able to hear the notes as you enter them is great for accuracy,
and with a little practice you can enter music very quickly, even with
keyboard skills as mediocre as mine.

Installation *should* be as straightforward as installing a couple of
packages with apt-get or equivalent and typing make (see the INSTALL
file), and probably some configuration for your own needs.

https://github.com/palestrina/lily-q

If you like it, let me know if there’s anything you’d like it to be able to do.

Vaughan

README file follows:

%%

LILYQUICK

Welcome to LilyQuick, originally written as a replacement for Speedy
Note Entry when I moved from Finale to Lilypond, and then much
improved. The basic idea is to play notes on a MIDI keyboard with your
left hand, then while they are sounding, press a note on the numeric
keypad with your right hand corresponding to the duration. For
example, to get "f2", play an F on the keyboard, and press number 5 on
the numeric keypad. The advantage to this approach is excellent speed
and accuracy, and you get to hear the notes as they are being entered.

The default key layout is as follows: numeric keypad keys 0-6 produce
notes in conjunction with the MIDI keyboard.
6 - semibreve/whole
5 - minim/half
4 - crochet/quarter
1 - quaver/eighth
2 - semiquaver/sixteenth
3 - demisemiquaver/thirty-second
0 - last note value (useful with repeated dotted notes)

If useLongValues is set to true in LQconfig.lua, the 3 key changes to
\breve. This can be useful when entering early music.

7 adds whole bar rests such as R1* , then changes to data entry mode,
where the numeric keypad behaves as normal. Pressing enter leaves data
entry mode. The type of rest is from the variable fullRest in
LQconfig.lua. So to enter 15 bars of rest, you would type 7, 1, 5,
enter on the numeric keypad.

8 is for entering tuplets. The 8 key enters \tuplet, then enters data
entry mode for the numbers. The enter key leaves data entry mode and
adds the curly bracket " { ", ready for note entry. So for quintuplets
you would press 8, 5, /, 4, enter; which would type " \tuplet 5/4 {"

If you only ever use triplets, you may want to make tuplets into a
simple string such as:
  ["8"] = " \\tuplet 3/2 {",
(in LQkeyboardEvents.lua)

9 just adds a right curly bracket " }"

+ alternates between entering left and right slurs: " (" and " )"

= or / adds a tie "~"

. adds a dot to the rhythm

* changes the previous note enharmonically, for example cis to des.
Press again to cycle between possibilities.

The Enter key either exits data entry mode, or adds a bar check and
newline: " |\n"

F8/F15 exits LilyQuick. Because I don’t know anything about signals,
you need to press a key on your MIDI keyboard to exit properly.

F9/F16 changes the key sharpwards. LilyQuick will play a G to signify
one sharp, up to a C# to signify seven sharps. If you want sharps and
you’re getting flats, try changing the key.

F10/F17 changes the key flatwards

In C major, LilyQuick will type a chromatic scale as follows: c cis d
es e f fis g gis a bes b.

F11/F18 and F12/F19 (and any other numeric key) can be customized at
your pleasure.

IMPLEMENTATION

LilyQuick intercepts keystrokes from the computer keyboard. If they’re
not from the numeric keypad, they are sent straight on to the system.
If they are, they are sent to the Lua program, which can create vitual
keystrokes. At the moment it can send any character that can be typed
on the regular part of the keyboard using the shift key. This includes
all characters I regularly use for inputting Lilypond code. I don’t
know enough about non-English keyboard layouts, and whether people
would want to enter non-ASCII characters when entering notes in
Lilypond. It shouldn’t be too hard to add this feature if the need
arises.

What LilyQuick does with incoming keystrokes is defined in LQkeyboardEvents.lua

Intercepting keystrokes requires superuser privileges (sudo).

CUSTOMIZATION
LQconfig.lua contains a number of options you may wish to change, such
as absolute/relative note entry, MIDI output channel etc. See the
INSTALL file for more information on deviceName and MIDIKeyboardName.
The file LQkeyboardEvents.lua determines how incoming keystrokes are
handled, and is completely customizable. To type a simple string, just
include it (like the entry for "9"). Otherwise the entry should be a
table containing a function, and the parameter to send to it. To send
multiple parameters, put them in a table (like the function
Alternate).

TODO
- Allow make install to put the executable into some /bin directory.
Not sure how to tell it where the Lua scripts are yet.
- Easier time signature changing, either through the