Search found 68 matches

by bjkwon
January 15th, 2021, 11:21 pm
Forum: Developer Notes
Topic: v1.501
Replies: 1
Views: 6206

Re: v1.501

RepaintGO calls invalidateRedrawCue() that calls InvalidateRect.

RepaintGO is in
1) ShowWS_CommandPrompt --> handles command line operation for base (checked), and debugging udf (need to check)
by bjkwon
September 26th, 2020, 9:47 pm
Forum: Developer Notes
Topic: type()
Replies: 1
Views: 2155

Re: type()

fig: A named figure object
fig.IsString() --> true
fig.IsGO() --> true
by bjkwon
September 26th, 2020, 7:52 pm
Forum: Developer Notes
Topic: type()
Replies: 1
Views: 2155

type()

//Let sig be a CVar object. Is it a string: sig.IsString() Is it a boolean sig.IsBool() Is it complex? sig.IsComplex() Is It a GO? sig.IsGO() uint16_t type = sig.type(); If the object is non-cell, non-strut, non-handle================= Is it a time signal (audio, time series): type >= TYPEBIT_TEMPOR...
by bjkwon
September 7th, 2020, 12:25 am
Forum: Developer Notes
Topic: Fixing a sporadic crash problem with gcf.delete
Replies: 1
Views: 1958

Re: Fixing a sporadic crash problem with gcf.delete

Another use of _delete_ans is
at the beginning of _plot or _line

With the same rationale---not to worry about the existing ans when the new call deletes or invalidates the previous line object.
by bjkwon
September 7th, 2020, 12:24 am
Forum: Developer Notes
Topic: Fixing a sporadic crash problem with gcf.delete
Replies: 1
Views: 1958

Fixing a sporadic crash problem with gcf.delete

Clicking the "close" button of a figure window or Alt-F4, the figure is closed and variables are arranged as expected; i.e., gcf and ?foc are deleted and ans becomes null. But gcf.delete sometimes causes a crash. It was difficult to find the root cause. Finally I found it. It happened when the "ans"...
by bjkwon
September 5th, 2020, 1:39 pm
Forum: Developer Notes
Topic: Plot unit tests
Replies: 0
Views: 2194

Plot unit tests

x=[1 2 8 9 10 13 20];
y=[4 2 2 0 7 9 10]
plot(y)
plot(x,y)
plot(x,y,"o")
figure
plot(y,"r")
fig1=figure(1)
plot(fig1,x,y,"c^-")
figure(2).plot(y,"mv-")
figure(2).line(y(end:1),"v-")
fig1.line(x,y(end:1),"rv")
// Did gcf change to 1?
//==============
y=[4 2 2 0 7 9 10]
plot(y)
delete(1)
by bjkwon
July 27th, 2020, 10:35 pm
Forum: Developer Notes
Topic: How many samples are there in x(t1~t2)?
Replies: 0
Views: 2386

How many samples are there in x(t1~t2)?

Given fs, every sample point is in the grid of 1/fs second. Then, exactly how many sample points are there in the expression x(t1~t2), which is the audio signal x between t1 ms and t2 ms? If t1 is exactly on the time grid, the first index is the one corresponding to t1. If t2 is exactly on the time ...
by bjkwon
June 15th, 2020, 12:03 am
Forum: Sound beyond sound
Topic: 100. The best thing you can do to a dying person--say something nice
Replies: 0
Views: 2123

100. The best thing you can do to a dying person--say something nice

Senses of tactile, taste, and smell might have already gone when the heart is about to stop beating and the body starts to shut down. Finally, he closes his eyes--the vision is out. What's left? He can probably still hear, even if he seems unconscious. Play his favorite piece of music softly. Whisp...
by bjkwon
June 15th, 2020, 12:01 am
Forum: Sound beyond sound
Topic: 99. Audiographic memory
Replies: 0
Views: 851

99. Audiographic memory

You might have forgotten his name or what he looked like; but upon recognizing his voice, you know he was your classmate decades ago. A seemingly simple sound connects you to endless chains of memories. A train horn evokes your memories far more than just a train. Your childhood favorite tune bring...
by bjkwon
June 15th, 2020, 12:00 am
Forum: Sound beyond sound
Topic: 98. Infrasound
Replies: 0
Views: 819

98. Infrasound

Humans cannot hear low-frequency sounds below 20 Hz. It doesn't mean that those sounds can be dismissed. Several reports suggest that infrasound may cause the feelings of annoyances, fear, or awe {refs}. While the claims of infrasound associated with ghost sightings may be considered a hoax, the im...