Hello Guys,
It's been a long time since i am writing this blog. I was having a dream to generate music with hand gesture. I was looking for it. But finally i got an idea. Using Light Dependent Resistor (LDR) as a sensor, Arduino UNO as a PC interface and MAX/MSP as a Music Generator, finally i build a very basic hand movement music controller. And it sounds great....
The name behind Virtual Guitar String is that there is no string though we can change the tone of music...
Let's build it...
The journey of a thousand miles begins with a single step and that step begins with a simple thought.
Wednesday, December 26, 2012
Friday, November 16, 2012
Max/MSP with Arduino: Multiplexing 8 inputs using 4051
Hi guys,
This post explains about interfacing Max/MSP with multiplexer 4051 using Arduino. Following is the patch code. Just copy and paste in Max window. It will automatically generate the block diagram. You will need Maxuino Patch for Arduino. And follow the comments shown in the block diagram patch.
CODE:
This post explains about interfacing Max/MSP with multiplexer 4051 using Arduino. Following is the patch code. Just copy and paste in Max window. It will automatically generate the block diagram. You will need Maxuino Patch for Arduino. And follow the comments shown in the block diagram patch.
CODE:
{ "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "conncet the actions to be performed. Like If you are making Pizo Drum, Create bang object to each of these output followed by a togedge object. And then make a patch with different sound of drum set like kick, Snare, Cymbal, Tom, etc... And trigger them from here.", "linecount" : 4, "fontsize" : 12.0, "patching_rect" : [ 395.0, 318.0, 453.0, 62.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 0, "id" : "obj-36" } } , { "box" : { "maxclass" : "comment", "text" : "The Output of 4051 is connected to Analog pin of arduino that is A0. So from Maxduino Patch connect the output of analog pin A0 to the input of float number shown below.", "linecount" : 4, "fontsize" : 12.0, "patching_rect" : [ 216.0, 17.0, 242.0, 62.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 0, "id" : "obj-2" } } , { "box" : { "maxclass" : "comment", "text" : "Connect these three LED to Arduino Patch having digital input pin 2,3,4. Connect these 2,3,4 Pin to the selection pin of 4051 Multiplexer. The Input of multiplexrs are 8 analog inputs may be coming from Pizos or Potentiomener.", "linecount" : 6, "fontsize" : 12.0, "patching_rect" : [ 98.0, 263.0, 232.0, 89.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 0, "id" : "obj-1" } } , { "box" : { "maxclass" : "newobj", "text" : "s num", "fontsize" : 12.0, "patching_rect" : [ 18.0, 269.0, 43.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 0, "id" : "obj-55" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 18.0, 241.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-54" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 829.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-52" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 767.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-50" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 427.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-48" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 489.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-46" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 700.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-44" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 623.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-42" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 547.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-40" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 358.0, 292.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-38" } } , { "box" : { "maxclass" : "newobj", "text" : "r anlg", "outlettype" : [ "" ], "fontsize" : 12.0, "patching_rect" : [ 590.0, 189.0, 41.0, 20.0 ], "numinlets" : 0, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-35" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 489.0, 248.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-34" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 824.0, 242.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-33" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 764.0, 245.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-32" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 699.0, 245.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-31" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 624.0, 248.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-30" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 548.0, 248.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-29" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 429.0, 248.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-28" } } , { "box" : { "maxclass" : "newobj", "text" : "*", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 358.0, 248.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-27" } } , { "box" : { "maxclass" : "newobj", "text" : "s anlg", "fontsize" : 12.0, "patching_rect" : [ 291.0, 120.0, 43.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 0, "id" : "obj-26" } } , { "box" : { "maxclass" : "flonum", "outlettype" : [ "float", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 291.0, 84.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-25" } } , { "box" : { "maxclass" : "newobj", "text" : "== 7.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 792.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-23" } } , { "box" : { "maxclass" : "newobj", "text" : "== 6.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 735.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-22" } } , { "box" : { "maxclass" : "newobj", "text" : "== 5.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 680.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-21" } } , { "box" : { "maxclass" : "newobj", "text" : "== 4.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 622.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-20" } } , { "box" : { "maxclass" : "newobj", "text" : "== 3.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 563.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-19" } } , { "box" : { "maxclass" : "newobj", "text" : "== 2.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 502.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-18" } } , { "box" : { "maxclass" : "newobj", "text" : "== 1.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 443.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-17" } } , { "box" : { "maxclass" : "newobj", "text" : "== 0.", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 387.0, 123.0, 38.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-16" } } , { "box" : { "maxclass" : "newobj", "text" : "r num", "outlettype" : [ "" ], "fontsize" : 12.0, "patching_rect" : [ 590.0, 62.0, 41.0, 20.0 ], "numinlets" : 0, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-15" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "patching_rect" : [ 231.0, 229.0, 20.0, 20.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-13" } } , { "box" : { "maxclass" : "newobj", "text" : "% 2", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 231.0, 196.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-12" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "patching_rect" : [ 188.0, 228.0, 20.0, 20.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-11" } } , { "box" : { "maxclass" : "newobj", "text" : "% 2", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 188.0, 196.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-10" } } , { "box" : { "maxclass" : "newobj", "text" : "/ 2", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 188.0, 167.0, 32.5, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-9" } } , { "box" : { "maxclass" : "led", "outlettype" : [ "int" ], "patching_rect" : [ 145.0, 228.0, 20.0, 20.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-8" } } , { "box" : { "maxclass" : "newobj", "text" : ">= 4", "outlettype" : [ "int" ], "fontsize" : 12.0, "patching_rect" : [ 144.0, 195.0, 35.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-7" } } , { "box" : { "maxclass" : "number", "outlettype" : [ "int", "bang" ], "fontsize" : 12.0, "patching_rect" : [ 19.0, 204.0, 50.0, 20.0 ], "numinlets" : 1, "fontname" : "Arial", "numoutlets" : 2, "id" : "obj-6" } } , { "box" : { "maxclass" : "newobj", "text" : "counter 0 0 7", "outlettype" : [ "int", "", "", "int" ], "fontsize" : 12.0, "patching_rect" : [ 74.0, 95.0, 81.0, 20.0 ], "numinlets" : 5, "fontname" : "Arial", "numoutlets" : 4, "id" : "obj-5" } } , { "box" : { "maxclass" : "newobj", "text" : "metro 100", "outlettype" : [ "bang" ], "fontsize" : 12.0, "patching_rect" : [ 74.0, 66.0, 65.0, 20.0 ], "numinlets" : 2, "fontname" : "Arial", "numoutlets" : 1, "id" : "obj-4" } } , { "box" : { "maxclass" : "toggle", "outlettype" : [ "int" ], "patching_rect" : [ 74.0, 34.0, 20.0, 20.0 ], "numinlets" : 1, "numoutlets" : 1, "id" : "obj-3" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ 83.5, 159.0, 28.5, 159.0 ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ 83.5, 155.0, 153.5, 155.0 ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ 83.5, 141.0, 197.5, 141.0 ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ 83.5, 132.5, 240.5, 132.5 ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-29", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-30", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-33", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-34", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-28", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-31", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-32", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-48", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-46", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-42", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-44", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-32", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-52", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-22", 0 ], "destination" : [ "obj-32", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-22", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-23", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-54", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-54", 0 ], "destination" : [ "obj-55", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-27", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-38", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] }
Tuesday, November 6, 2012
Arduino: LED blinking with variable speed
Hello guys,
Today we are going to make an Arduino project. This
project was done in 4th semester by me and my friend, Sagar. Well,
his name is also Sagar and mine too!!!
Let’s discuss about the project aim.
We are going to make a circuit which contains 3 LED. And we will write an
arduino sketch to control the speed of LED Blinking. Here, we are going to make
LED blinking with variable the speed. That means, LED blinking process will
initially start with slow speed, then it will increase the blinking speed. And,
Then again it will slow down the speed... You will need Arduino Uno R3 for this project. If you don't have one, buy it from below link.
https://amzn.to/2QRr2IW
https://amzn.to/2QRr2IW
MATLAB: Analog QAM with Stereo Signals
Hello Guys,
I hope you are enjoying there. Today, I am having a
lot of work esp. final projects for semester end. My college is off from next
week due to Diwali Vacation. So, having a lot of work…
Anyway, I am taking some rest. So, wanna get back to
MATLAB.
We are starting with DSB-SC scheme for modulation and
demodulation. And then we will discuss Analog Qudrature Amplitude modulation
scheme for sending two different signals at the same frequency band modulated
with sinusoid carrier. For one signal to be modulated, we are using cosine and,
for another is modulated by Sine. And we will also write a code in MATLAB to do
the analysis.
Let’s look at the simple modulation scheme.
Friday, October 26, 2012
Arduino 3 Bit Counter with code and schemetics
Hi guys,
In this blog, I am going to show how to make 3 Bit counter using Arduino with Code and Schematics.
For this you'll need Arduino Uno R3. If you don't have one, you can buy it from below link.
https://amzn.to/2QRr2IW
For this you'll need Arduino Uno R3. If you don't have one, you can buy it from below link.
https://amzn.to/2QRr2IW
For making 3 bit up counter we need to first understand desired outputs.
The output for 3 bit up counter will start from 000 to 111.
000 -->> 001 -->> 010 -->> 011 -->> 100 -->> 101 -->> 110 -->> 111 -->> 000.
So for circuit, make the connection shown in the figure with arduino board. Connect digital pin 3,4 and 5 to LED via 1k register. Here make sure you connect LEDs via register. If you will not connect register, there may be possibility of high current through LED, which may result in short circuit the board.
Practical Design of “The Time Machine”
Hello Time Travelers,
This blog is going to give an idea about travelling at
Light Speed. In the climate we have designed The Time-Machine which can travel
in future only.
For understanding the possible ways to travel at the light speed
(c), first we need to understand “Theory of Relativity”. It was given by
famous scientist “Albert Einstein”. The
Relativity had been distinguished in two parts.
Friday, May 18, 2012
C++ to Text file converter
Hi guys i have made a Batch File code by which you can convert C++ File to Text File.
I know that we can convert it by using notepad. But for understanding the purpose of Batch Coding you can try this. This code changes the file extension of C++ (.cpp) to Text (.txt). So, we can assume that your file gets converted into text file.
CODE
Save this code with .bat extension. When you run this code, use the whole path specifying the drive later also.
I know that we can convert it by using notepad. But for understanding the purpose of Batch Coding you can try this. This code changes the file extension of C++ (.cpp) to Text (.txt). So, we can assume that your file gets converted into text file.
CODE
@echo off Set /P userin=Enter the File name ECHO file name is =%userin% pause: set str1=%userin:.cpp=% echo.%str1% set "str2=%str1%.txt echo.%str2% pause: Press any key to convert it into Text file COPY %userin% %str2% pause:
Save this code with .bat extension. When you run this code, use the whole path specifying the drive later also.
Subscribe to:
Posts (Atom)