lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pitch to string conversion in c++


From: Marc Hohl
Subject: Re: pitch to string conversion in c++
Date: Fri, 16 Sep 2011 10:17:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13

Am 16.09.2011 10:12, schrieb Marc Hohl:
Hello list,

I tried to convert a pitch into a string like this:

Pitch *current_pitch = unsmob_pitch (event->get_property ("pitch"));
string pitchstring = current_pitch.to_string ();
Sorry for the noise - on console, everything looked right, but in the mail, I saw the
culprit:

Pitch current_pitch = *unsmob_pitch (event->get_property ("pitch"));
string pitchstring = current_pitch.to_string ();

works fine.

Marc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]