Practical difference between "line" and "line~" when you can use either

Masa's icon

Hi all,
I am wondering what the practical difference between "line" and "line~" is, in the situation where you can use either?
I have attached the image of such a situation.

Many thanks for your advice in advance,
Masa

Screen-Shot-2015-01-18-at-12.50.15.png
png
srs's icon

line~ is an msp object and generates a signal ramp or envelope

line sends out number values as messages

vichug's icon

In your case, using line~ instead of line will probably yield better result because ther eis no discontinuity in audio signal (whereas with line you would have gaps between each line grain, which occur at minimum 1.ms ; with line~ it's each audio sample which is a lot more)

Masa's icon

This is a clear explanation. Thanks a lot SRS and VICHUG!

In your case, using line~ instead of line will probably yield better result because ther eis no discontinuity in audio signal (whereas with line you would have gaps between each line grain, which occur at minimum 1.ms ; with line~ it’s each audio sample which is a lot more)

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's an example where one might use both. In the example, the conversion of decibels to amplitude happens only, at most, every 1/40 of a second, and the line~ object goes to its new value linearly in 1/40 of a second. That's different from using only line~ and then using dbtoa~ to do tens of thousands of calculations per second.

Masa's icon

Thank you very much for your further clarification and example CHRISTOPHER DOBRIAN. Is the purpose of the use of "line" in such a situation, saving CPU power?