<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I'm trying to come up with an approach to portamento note phrasing.&nbsp; Best I've been able to do is work with gliss.&nbsp; I'm wondering if this is on the right track for how this is usually handled?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Jim<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
(definstrument (myport start-time duration frequency start-freq end-freq (amp-env '(0 0 1 1 2 1 3 0)) sampling-rate)
<div>&nbsp; (let* ((beg (floor (* start-time sampling-rate)))</div>
<div>(end (+ beg (floor (* duration sampling-rate))))</div>
<div>(sine-wave (make-oscil :frequency frequency))</div>
<div>(ampf (make-env amp-env :duration duration :scaler 1.0))</div>
<div>(frqf (make-env '(0 0 1 1) :scaler (hz-&gt;radians (- end-freq start-freq)) :duration duration :base 0.67))</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</div>
<div>&nbsp; &nbsp; &nbsp;(do ((i beg (+ i 1)))</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;((= i end))</div>
<div>&nbsp; &nbsp; &nbsp;(outa i (* (env ampf) (oscil sine-wave (env frqf) ))) </div>
<div>&nbsp; &nbsp; &nbsp;(outb i (* (env ampf) (oscil sine-wave (env frqf) ))) </div>
<div>&nbsp; &nbsp; &nbsp;)))</div>
<div><br>
</div>
<div>(with-sound (:srate 48000 :channels 2 :header-type mus-riff &nbsp;:play #t)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (myport 0 1 300 300 400 '(0 1 1 .3) 48000)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (myport 2 1.5 400 400 300 '(0 .3 1 .3) 48000)</div>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )<br>
</div>
</body>
</html>