<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. Best I've been able to do is work with gliss. 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> (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->radians (- end-freq start-freq)) :duration duration :base 0.67))</div>
<div> )</div>
<div> (do ((i beg (+ i 1)))</div>
<div> ((= i end))</div>
<div> (outa i (* (env ampf) (oscil sine-wave (env frqf) ))) </div>
<div> (outb i (* (env ampf) (oscil sine-wave (env frqf) ))) </div>
<div> )))</div>
<div><br>
</div>
<div>(with-sound (:srate 48000 :channels 2 :header-type mus-riff :play #t)</div>
<div> (myport 0 1 300 300 400 '(0 1 1 .3) 48000)</div>
<div> (myport 2 1.5 400 400 300 '(0 .3 1 .3) 48000)</div>
)<br>
</div>
</body>
</html>